+ 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?

9th Jun 2018, 7:53 PM
Amir
Amir - avatar
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)
9th Jun 2018, 8:39 PM
ifl
ifl - avatar
0
please how can I give my text only a gradient color
10th Jun 2018, 10:01 PM
Olatunde Taiwo Oladele
Olatunde Taiwo Oladele - avatar