I’m not in love with Git. I use it, not because I think its the best tool for my work, but because it’s the standard in software development at the moment. Which makes it the right tool for me to use.
I think this explains why, I’ve never really thought much about local repos. I was recently developing a large feature and found myself not wanting to share my code with the rest of the team, until it made sense. Yet, I missed the security of committing. Then out of the blue I had a mild epihany and realized that I had been completely missing the obvious. I still could, and should, be committing my code. But I only had to commit it to my local repo. I could wait on pushing it to the remote repo, until I was ready to show the world.
Funny how the simplest things are sometimes the hardest to grasp.