logoalt Hacker News

akerl_today at 3:26 AM1 replyview on HN

No. Use a .gitignore instead of .gitkeep. Instead of checking in build/.gitkeep, check in build/.gitignore.


Replies

dwattttttoday at 3:38 AM

I don't know that I like this approach. It certainly works, but it's not specifically what (people expect) a .gitignore file to be used for. That confusion isn't good: https://thecodelesscode.com/case/222 and https://thecodelesscode.com/case/223

show 1 reply