From http://snipplr.com/view.php?codeview&id=55151
#%uncommited changes $ git reset --hard HEAD # %restore a file $ git checkout -- hello.rb $ git checkout HEAD hello.rb