Posted By

cphoover on 08/03/12


Tagged


Versions (?)

Discard Unstaged Changes in GIT


 / Published in: Bash
 

  1. #MORE INFO: http://anders.janmyr.com/2009/09/git-undo-reset-or-revert.html
  2. #METHOD 1:
  3. #This stashes them
  4. git stash save --keep-index
  5.  
  6. #This gets rid of the stash and actually drops it
  7. git stash drop
  8.  
  9. #METHOD 2:
  10. git checkout -- .

Report this snippet  

You need to login to post a comment.