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

Untitled

By: a guest on Apr 28th, 2012  |  syntax: None  |  size: 0.41 KB  |  hits: 20  |  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. cd /tmp
  2. mkdir a
  3. cd /tmp/a
  4. git init
  5. touch foo
  6. git add -A
  7. git commit -m "Initial commit"
  8. git checkout -b release_78
  9.  
  10. echo "foo" > foo
  11. git add -A
  12. git commit -m "foo"
  13.  
  14. git checkout master
  15.  
  16. touch bar
  17. git add -A
  18. git commit -m "bar"
  19.  
  20. cd /tmp
  21. git clone a b
  22.  
  23. cd /tmp/b
  24. touch baz
  25. git add -A
  26. git commit -m "baz"
  27.  
  28. git merge origin/release_78
  29.  
  30.  
  31. cd /tmp/a
  32. touch ohai
  33. git add -A
  34. git commit -m "ohai"
  35.  
  36. cd /tmp/b
  37.  
  38.  
  39. # git pull --rebase