/ Published in: Bash
URL: http://book.git-scm.com/4_undoing_in_git_-_reset,_checkout_and_revert.html
Expand |
Embed | Plain Text
%uncommited changes $ git reset --hard HEAD %restore a file $ git checkout -- hello.rb $ git checkout HEAD hello.rb
You need to login to post a comment.
