/ Published in: Other
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# 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