I've seen people adding .gitkeep
, .keep
files in empty directories on a Git repo and I just don't see why I would ever need to track en empty dir.
Can you mention some examples where that would be necessary?
Related
What are the differences between .gitignore and .gitkeep?
When creating a template project for others to implement it may be convenient to include empty directories to help guide where certain content should go.
For example, an MVC template repo could include empty model, view, and controller folders that are already in the correct location and ready to be filled with files.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With