The doubt arose, since I found in a library that I downloaded a file .gitkeep
, which was empty. Although I was looking in the documentation of Git I could not find the use of it.
Does anyone know if it is used for something or was only created by the author without a specific purpose.
The file
.gitkeep
is just a dummy file to allow an empty folder (except for that file) to be created when cloning the repository, since empty folders are not part of version control.Actually the file can be called anything but that is an unofficial convention adopted by some
If you create a new folder in a project under version control with Git, you'll see that when you do a git status , it doesn't show up, while it's empty.
One way to add empty cards to your repository would be to add a file inside them. By convention a .gitkeep is used , that's why it's not an 'official' Git file, and if you want you can put a file called '.pepito-palotes' (or whatever you want, even if the first one is prevailing) .
This page explains it in detail: http://aprendegit.com/gitkeep-including-folders-in-los-repositories/ Greetings.