To revert your working copy of a file back to the version last committed on HEAD
git checkout filename
To revert your entire working copy (ALL WORKING FILES)
git reset --hard