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)
Tatum.Schinn answered on June 10th 19 at 16:37
To preserve the folder structure. Empty folders to git ignore.