GIT - Switch branch without committing


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



Copy this code and paste it in your HTML
  1. git stash save
  2. git checkout branch
  3.  
  4. ...
  5. // Do something
  6. ...
  7.  
  8. git checkout oldbranch
  9. git stash pop

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.