Guest User

Untitled

a guest
Mar 9th, 2018
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. • [syeeda:/tmp/foo] nothingmuch % git init
  2. Initialized empty Git repository in /private/tmp/foo/.git/
  3. • [syeeda:/tmp/foo] nothingmuch % echo foo > foo
  4. • [syeeda:/tmp/foo] nothingmuch % git add foo
  5. • [syeeda:/tmp/foo] nothingmuch % git commit -m "add foo"
  6. [master (root-commit)]: created 403b7b4: "add foo"
  7. 1 files changed, 1 insertions(+), 0 deletions(-)
  8. create mode 100644 foo
  9. • [syeeda:/tmp/foo] nothingmuch % git checkout -b contributer
  10. Switched to a new branch "contributer"
  11. • [syeeda:/tmp/foo] nothingmuch % echo bar >> foo
  12. • [syeeda:/tmp/foo] nothingmuch % git commit -am "modify foo"
  13. [contributer]: created c4ac515: "modify foo"
  14. 1 files changed, 1 insertions(+), 0 deletions(-)
  15. • [syeeda:/tmp/foo] nothingmuch % git checkout master
  16. Switched to branch "master"
  17. • [syeeda:/tmp/foo] nothingmuch % git cherry-pick --signoff contributer
  18. Finished one cherry-pick.
  19. [master]: created 1515d1a: "modify foo"
  20. 1 files changed, 1 insertions(+), 0 deletions(-)
  21. • [syeeda:/tmp/foo] nothingmuch % git log --all --decorate
  22. commit 1515d1a001db99c95e3175fe1ace077f233ecac4 (refs/heads/master)
  23. Author: Yuval Kogman <nothingmuch@woobling.org>
  24. Date: Sat May 16 05:43:20 2009 +0200
  25.  
  26. modify foo
  27.  
  28. Signed-off-by: Yuval Kogman <nothingmuch@woobling.org>
  29.  
  30. commit c4ac51521065d636b1141ca433e6074f4e79c836 (refs/heads/contributer)
  31. Author: Yuval Kogman <nothingmuch@woobling.org>
  32. Date: Sat May 16 05:43:20 2009 +0200
  33.  
  34. modify foo
  35.  
  36. commit 403b7b40b25de673b0f0c2e0c74ef78e202fdf16
  37. Author: Yuval Kogman <nothingmuch@woobling.org>
  38. Date: Sat May 16 05:43:06 2009 +0200
  39.  
  40. add foo
  41. • [syeeda:/tmp/foo] nothingmuch % git checkout contributer
  42. Switched to branch "contributer"
  43. • [syeeda:/tmp/foo] nothingmuch % git rebase master
  44. First, rewinding head to replay your work on top of it...
  45. Nothing to do.
  46. • [syeeda:/tmp/foo] nothingmuch % git log --all --decorate
  47. commit 1515d1a001db99c95e3175fe1ace077f233ecac4 (refs/heads/master, refs/heads/contributer)
  48. Author: Yuval Kogman <nothingmuch@woobling.org>
  49. Date: Sat May 16 05:43:20 2009 +0200
  50.  
  51. modify foo
  52.  
  53. Signed-off-by: Yuval Kogman <nothingmuch@woobling.org>
  54.  
  55. commit 403b7b40b25de673b0f0c2e0c74ef78e202fdf16
  56. Author: Yuval Kogman <nothingmuch@woobling.org>
  57. Date: Sat May 16 05:43:06 2009 +0200
  58.  
  59. add foo
Add Comment
Please, Sign In to add comment