+ 21
What are .keep and .gitkeep used for in Git?
What is the difference between keep and gitkeep in Git? How can I use them?
3 Respostas
+ 8
Git does not allow the storage of empty directory.
Adding a file in that folder allows the commit and push of the directory structure.
This is needed if the team pre-defines a folder structure for a project, but there is no files in there yet.
It can be any name, .gitkeep or .keep is just a convention.
When the file name start with a dot '.', it is not confused with future normal files, and is even hidden when listing the content of the folder with command ls (on Linux or MacOsx)
0
please how can I give my text only a gradient color