Guest User

Untitled

a guest
May 3rd, 2018
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.18 KB | None | 0 0
  1. ~/test > git init && touch hello && git add hello && git commit -m "add hello" && touch hello2 && git add hello2 && git commit -m "add hello2" && touch hello3 && git add hello3 && git commit -m "add hello3" && git checkout -b otherbranch && touch hello4 && git add hello4 && git commit -m "add hello4" && touch hello5 && git add hello5 && git commit -m "add hello5"
  2. Initialized empty Git repository in /Users/jmeridth/test/.git/
  3. [master (root-commit) 58ec117] add hello
  4. 0 files changed, 0 insertions(+), 0 deletions(-)
  5. create mode 100644 hello
  6. [master c295b30] add hello2
  7. 0 files changed, 0 insertions(+), 0 deletions(-)
  8. create mode 100644 hello2
  9. [master 4d9730e] add hello3
  10. 0 files changed, 0 insertions(+), 0 deletions(-)
  11. create mode 100644 hello3
  12. Switched to a new branch 'otherbranch'
  13. [otherbranch 81ed0da] add hello4
  14. 0 files changed, 0 insertions(+), 0 deletions(-)
  15. create mode 100644 hello4
  16. [otherbranch 4f90cca] add hello5
  17. 0 files changed, 0 insertions(+), 0 deletions(-)
  18. create mode 100644 hello5
  19. ~/test(otherbranch) > git log
  20. commit 4f90cca2b056fa1672292192503cb4d9cf960c97
  21. Author: Jason Meridth <jmeridth@gmail.com>
  22. Date: Tue Mar 23 21:56:08 2010 -0600
  23.  
  24. add hello5
  25.  
  26. commit 81ed0dadf9f01afde682c8356039b37a6077d1a8
  27. Author: Jason Meridth <jmeridth@gmail.com>
  28. Date: Tue Mar 23 21:56:08 2010 -0600
  29.  
  30. add hello4
  31.  
  32. commit 4d9730e845718870e9edfd9f606e383a99664a9b
  33. Author: Jason Meridth <jmeridth@gmail.com>
  34. Date: Tue Mar 23 21:56:08 2010 -0600
  35.  
  36. add hello3
  37.  
  38. commit c295b3034bf724c684aa1b72683167f9de411def
  39. Author: Jason Meridth <jmeridth@gmail.com>
  40. Date: Tue Mar 23 21:56:08 2010 -0600
  41.  
  42. add hello2
  43.  
  44. commit 58ec11735447ed82c96a5be18bc4604685ab839c
  45. Author: Jason Meridth <jmeridth@gmail.com>
  46. Date: Tue Mar 23 21:56:08 2010 -0600
  47.  
  48. add hello
  49. ~/test(otherbranch) > git checkout master
  50. Switched to branch 'master'
  51. ~/test(master) > git merge otherbranch
  52. Updating 4d9730e..4f90cca
  53. Fast-forward
  54. 0 files changed, 0 insertions(+), 0 deletions(-)
  55. create mode 100644 hello4
  56. create mode 100644 hello5
  57. ~/test(master) > git log
  58. commit 4f90cca2b056fa1672292192503cb4d9cf960c97
  59. Author: Jason Meridth <jmeridth@gmail.com>
  60. Date: Tue Mar 23 21:56:08 2010 -0600
  61.  
  62. add hello5
  63.  
  64. commit 81ed0dadf9f01afde682c8356039b37a6077d1a8
  65. Author: Jason Meridth <jmeridth@gmail.com>
  66. Date: Tue Mar 23 21:56:08 2010 -0600
  67.  
  68. add hello4
  69.  
  70. commit 4d9730e845718870e9edfd9f606e383a99664a9b
  71. Author: Jason Meridth <jmeridth@gmail.com>
  72. Date: Tue Mar 23 21:56:08 2010 -0600
  73.  
  74. add hello3
  75.  
  76. commit c295b3034bf724c684aa1b72683167f9de411def
  77. Author: Jason Meridth <jmeridth@gmail.com>
  78. Date: Tue Mar 23 21:56:08 2010 -0600
  79.  
  80. add hello2
  81.  
  82. commit 58ec11735447ed82c96a5be18bc4604685ab839c
  83. Author: Jason Meridth <jmeridth@gmail.com>
  84. Date: Tue Mar 23 21:56:08 2010 -0600
  85.  
  86. add hello
  87. ~/test(master) > git revert HEAD^
  88. Finished one revert.
  89. [master dacca07] Revert "add hello4"
  90. 0 files changed, 0 insertions(+), 0 deletions(-)
  91. delete mode 100644 hello4
  92. ~/test(master) > git log
  93. commit dacca076c9456e86f52643eadd891cb8c64d1c34
  94. Author: Jason Meridth <jmeridth@gmail.com>
  95. Date: Tue Mar 23 21:56:45 2010 -0600
  96.  
  97. Revert "add hello4"
  98.  
  99. This reverts commit 81ed0dadf9f01afde682c8356039b37a6077d1a8.
  100.  
  101. commit 4f90cca2b056fa1672292192503cb4d9cf960c97
Add Comment
Please, Sign In to add comment