What is Nostr?
Curtis "Ovid" Poe /
npub15ap…q4e8
2024-12-28 09:07:53

Curtis "Ovid" Poe on Nostr: Sometimes you want to just have an empty directory in git, but not commit any files ...

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
Author Public Key
npub15apxhy8w7z45j7k52kj3ujyk56ks50w7uru2j8jgsdqu6jzpunesgyq4e8