Hacker News new | ask | show | jobs
by trelbutate 115 days ago
If someone doesn't know what .gitkeep is they should be able to derive from the name that it's some special file intended for git. If they then google it they will immediately find out what it's for. Yes, git itself has no concept of it but it's common enough that there's plenty documentation on the internet.
1 comments

Yes, because relying on google-fu is the way to ensure your build environment is consistent. /s

.gitkeep is explicitly not intended for git, because git doesn't recognize it at all.

Having the .gitignore, which is actually recognized by the git tools, means you can rely on the .gitignore functionality, including ensuring that things other than the .gitignore cannot be added to the repo.