What are the differences between .gitignore and .gitkeep? Are they the same thing with a different name, or do they both serve a different function? I don t seem to be able to find much documentation on .gitkeep.
Git - What are the differences between .gitignore and .gitkeep
De openkb
Sommaire |
Questions
Answers
".gitkeep" isn’t documented, because it’s not a feature of Git.
https://git.wiki.kernel.org/index.php/Git_FAQ#Can_I_add_empty_directories.3F https://git.wiki.kernel.org/index.php/Git_FAQ#Can_I_add_empty_directories.3F
There is a competing convention of adding a “.gitignore” file to the empty directories to get them tracked, but some people see this as confusing since the goal is to keep the empty directories, not ignore them; “.gitignore” is also used to list files that should be ignored by Git when looking for untracked files.
Source
License : cc by-sa 3.0
http://stackoverflow.com/questions/7229885/what-are-the-differences-between-gitignore-and-gitkeep