Why .gitkeep in folders?
When generating a new project, install the package, I see the file in an empty folder.
Why is it and for what? What to do with it?
2 answers
The empty folder can't get into git. In the folder should be at least one file. For this have agreed to create an empty file with the name .gitkeep
(the name alludes - "git protect this folder"). The file can be deleted at any moment when there will appear other zakomirny files. The title and the contents of the file can be any (name .gitkeep
has no influence on git, unlike .gitignore
)
To preserve the folder structure. Empty folders to git ignore.
Find more questions by tags Git