News for hackers. Stuff that matters.
Re:Don't create .gitkeep files, use .gitignore instead by rswail on Sunday February 22, 2026 @12:39AM (#47108535)
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.

There are no comments on this comment yet.