Keynote - Python Brasil 2024
calendar_today timer Reading time ~1 minute
Artigos recentes
english
Git cannot see your empty folder
You made an empty folder, ran git status, and Git said the working tree is clean. The folder is right there on disk. Git just cannot see it.
englishHow to keep empty folders in Git with .gitkeep
Git will not track an empty folder. In this walkthrough I show you the little trick the community found for it: a file called .gitkeep. We make a folder, watch git status stay clean, add .gitkeep, and commit so the folder is there for everyone who clones the project.
englishYou're using two Git commands for this
If you make a Git branch and then run a second command to switch to it, you are doing it the long way. I still catch myself typing both. The full walkthrough has the one-step shortcuts.