Posted By

ragnarokkrr on 06/11/11


Tagged

Bash git


Versions (?)

GIT - reset


 / Published in: Bash
 

URL: http://book.git-scm.com/4_undoing_in_git_-_reset,_checkout_and_revert.html

  1. %uncommited changes
  2.  
  3.  
  4. $ git reset --hard HEAD
  5.  
  6. %restore a file
  7.  
  8. $ git checkout -- hello.rb
  9. $ git checkout HEAD hello.rb

Report this snippet  

You need to login to post a comment.