Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 25th, 2012  |  syntax: None  |  size: 0.40 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Git workflow for sudden high priority task
  2. git add -A
  3. git commit -am "must stop working to fix bug!"
  4. git checkout master
  5. git checkout -b "bug_branch"
  6.        
  7. git stash save "must stop working to fix bug!"
  8. git checkout master
  9. .. do some stuff
  10. git commit -am 'foo'
  11. git checkout bug_fix
  12. git stash pop
  13.        
  14. git checkout branch1
  15. git stash apply
  16. git checkout branch2
  17. git stash apply
  18. git checkout branch3
  19. git stash apply