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 | View the thread | More toots from ovid@fosstodon.org
=> View git tag | View programming tag This content has been proxied by September (3851b).Proxy Information
text/gemini