Have you seen the .gitkeep file in a folder or two and you're wondering what .gitkeep has to do with Git? Well, Git will not include empty folders in a commit, and as such, empty folders do not get pushed to GitHub or GitLab servers. But what if you want git to push an empty directory to GitHub? Well, the convention is to put a file named .gitkeep in the empty directory, then Git thinks the folder is being used, and it gets included in the push. It's worth noting that .gitkeep is not part of the tool or part of Git standard. It's kinda like the hidden menu at In and Out Burger - lots of people know about it and avid users certainly use it, but it's not officially supported or documented. So there, you go. Watch the video to learn more about what .gitkeep is and how to use it with Git and an empty directory or empty Git folder.
In questa pagina del sito puoi guardare il video online What is .gitkeep in Git? Plus an example. della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Cameron McKenzie 13 settembre 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 5,717 volte e gli è piaciuto 69 spettatori. Buona visione!