Hacker News
new
past
comments
ask
show
jobs
points
by
akerl_
1 days ago
|
comments
by
dwattttt
1 days ago
|
[-]
This still confuses me. Do you mean to say "use the .gitignore functionality, and check in the .gitkeep file"?
reply
by
23 hours ago
|
parent
|
next
[-]
deleted
reply
by
akerl_
23 hours ago
|
parent
|
prev
|
[-]
No. Use a .gitignore
instead
of .gitkeep. Instead of checking in build/.gitkeep, check in build/.gitignore.
reply
by
dwattttt
22 hours ago
|
parent
|
[-]
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
reply
by
akerl_
13 hours ago
|
parent
|
[-]
.gitignore is the officially recommended way to do this:
https://archive.kernel.org/oldwiki/git.wiki.kernel.org/index...
reply
by
Supermancho
5 hours ago
|
parent
|
[-]
Granted, naming is hard. Routinely using a file named .deleteme or .rememberwalkthedog because it's recommended instead of a more readable solution, is not a compelling reason to switch.
reply