DEV Community

Discussion on: .gitignore mistake that everyone makes

Collapse
 
mdegans profile image
Michael de Gans

I do this to make sure empty folders are included. You can create a .gitignore that excludes all except itself and stick it in the empty folder you want to keep.

It's not my idea. I found it on stack exchange somewhere. It's handy for test data download folders that you want to exist, but for which you don't want the binaries committed.