I have recently moved from SVN to Git and am a bit confused about something. I needed to run the previous version of a script through a debugger, so I did git checkout <
git checkout <
This did the trick for me (I still was on the master branch):
git reset --hard origin/master