Spider Stomper
Posts: 217
Joined: Tuesday, 20th September 2011, 02:03
Newbie msysgit question
I had no intention of submitting code at this point, I was just testing my own ability to make changes to the code in question. I edited some code, ran make, tested it, and then used the 'commit' command. However, I never used the 'push' command.
I thought I would be able to revert to the basic code with the "git checkout --filename" command. But when I ran it, I still had my edited code. So I tried deleting the file in question, confirming that it was deleted, then doing "git checkout --filename." Oddly, I still ended up with my edited code!
Why am I not reverting to the public code, and how can I do so?