We are using git as our source code control system. (I am from a SourceSafe background; years and years of it). I had some free time the other day and started to read a git tutorial so I would understand better how to use it. There is one thing I completely don't understand. I have a version of a source file right now that works but I want to analyze it and make it better. I want to put the current version in a safe place. If I commit the file, it only goes to my local repository? If I push it, then it's available for the whole team to see and they would pull it down if they were refreshing the project it belongs to? Is there a happy medium between these two places? I want a backup copy of it that's safer than just local, but I really don't want to give it to anyone else until I clean it up and it's perfect.

I'm thinking just copy it to a network drive but what I read the other day is that git gives you options so you don't have to do that. But if the option is a Push, no thanks; I'll make a copy of it.