Sometimes you want to just have an empty directory in git, but not commit any files in it.
touch data/.gitkeep
And add this to your .gitignore:
data/*
!data/.gitkeep
Then commit. Now you have an "empty" directory.
[#]git #programming
=> More informations about this toot | More toots from ovid@fosstodon.org
@ovid
Ya, I think Rails creates directories with a .keep in them for exactly this reason
=> More informations about this toot | More toots from onghu@ruby.social
text/gemini
This content has been proxied by September (3851b).