SyntaxFix
Write A Post
Hire A Developer
Questions
git checkout -- foo
That will reset foo to HEAD. You can also:
foo
git checkout HEAD^ foo
for one revision back, etc.