Return to Snippet

Revision: 58800
at August 3, 2012 10:44 by cphoover


Initial Code
# MORE INFO: http://book.git-scm.com/4_undoing_in_git_-_reset,_checkout_and_revert.html

#  If you've messed up the working tree, but haven't yet
#  committed your mistake, you can return the entire working
#  tree to the last committed state with

git reset --hard HEAD

#If you just want to restore just one file, say your hello.rb, use git checkout instead
git checkout -- hello.rb
git checkout HEAD hello.rb

Initial URL


Initial Description


Initial Title
Git Fixing un-committed mistakes

Initial Tags


Initial Language
Other