Comment Comment by tom9729 Or just write down the latest commit (or use git reflog to find it post facto) and if you mess up, do "git reset --hard <commit>" to get back to it. parent tom9729 10 years ago