Try it first:
git checkout master
(If you are on a branch other than master , use the branch name there instead.)
If this does not work, try ...
For a single file:
git checkout HEAD /path/to/file
For the entire working copy of the repository:
git reset
And if this does not work, you can look in the reflog to find your old SHA and reset for this:
git reflog git reset
HEAD is a name that always indicates the last commit in your current branch.
Amber Aug 30 '10 at 15:41 2010-08-30 15:41
source share