Discard Unstaged Changes in GIT


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.