Guest User

Untitled

a guest
Oct 24th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. git log --oneline --first-parent
  2.  
  3. [alias]
  4. tree = log --graph --decorate --pretty=oneline --abbrev-commit
  5.  
  6. $ git tree
  7. * 506b39f (HEAD -> test) second at branch
  8. * 07c0503 first at branch
  9. * f00cb21 first
  10.  
  11. git tree master..HEAD
  12. * 506b39f (HEAD -> test) second at branch
  13. * 07c0503 first at branch
  14.  
  15. $ git diff test...master
  16. diff --git a/test.txt b/test.txt
  17. index 8a1218a..eb095b3 100644
  18. --- a/test.txt
  19. +++ b/test.txt
  20. @@ -1,5 +1,5 @@
  21. -1
  22. -2
  23. +11
  24. +22
  25. 3
  26. 4
  27. 5
  28.  
  29. $ git tree test..master
  30. * 565b82a (master) thirt at master
  31. * 1e408a9 second at master
  32.  
  33. $ git show 565b82a
  34. commit 565b82a6319eb1afa5258bed37b640ec9a782679
  35. Author: Eugen Konkov
  36. Date: Mon Oct 24 20:36:39 2016 +0300
  37.  
  38. thirt at master
  39.  
  40. diff --git a/test.txt b/test.txt
  41. index bcba89f..eb095b3 100644
  42. --- a/test.txt
  43. +++ b/test.txt
  44. @@ -1,5 +1,5 @@
  45. 11
  46. -2
  47. +22
  48. 3
  49. 4
  50. 5
  51. $ git show 1e408a9
  52. commit 1e408a975a52fe9f6c32bd6cd7916c4ac082fd85
  53. Author: Eugen Konkov
  54. Date: Mon Oct 24 20:36:27 2016 +0300
  55.  
  56. second at master
  57.  
  58. diff --git a/test.txt b/test.txt
  59. index 8a1218a..bcba89f 100644
  60. --- a/test.txt
  61. +++ b/test.txt
  62. @@ -1,4 +1,4 @@
  63. -1
  64. +11
  65. 2
  66. 3
  67. 4
  68.  
  69. $ git diff master...test
  70. diff --git a/test.txt b/test.txt
  71. index 8a1218a..ec28619 100644
  72. --- a/test.txt
  73. +++ b/test.txt
  74. @@ -1,5 +1,5 @@
  75. 1
  76. 2
  77. 3
  78. -4
  79. -5
  80. +45
  81. +56
  82.  
  83. $ git diff master...HEAD
Add Comment
Please, Sign In to add comment