Why do you need to track an empty directory with Git?

I've seen people add files .gitkeep, .keepin the empty directories in Git repositories, and I just do not understand why I ever need to keep track of an empty directory.

Can you mention some examples where necessary?

Similar

What are the differences between .gitignore and .gitkeep?

+4
source share
4 answers

When creating a template project for others, to implement it, it may be convenient to include empty directories to help guide where certain content should go.

, MVC , , .

+5

. , .

: git ?

+2

.

0

.gitkeep , ( , ). , , .

0

All Articles