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?
June 10th 19 at 16:33
2 answers
June 10th 19 at 16:35
Solution
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)
June 10th 19 at 16:37
Solution
To preserve the folder structure. Empty folders to git ignore.

Find more questions by tags Git