Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- git log --oneline --first-parent
- [alias]
- tree = log --graph --decorate --pretty=oneline --abbrev-commit
- $ git tree
- * 506b39f (HEAD -> test) second at branch
- * 07c0503 first at branch
- * f00cb21 first
- git tree master..HEAD
- * 506b39f (HEAD -> test) second at branch
- * 07c0503 first at branch
- $ git diff test...master
- diff --git a/test.txt b/test.txt
- index 8a1218a..eb095b3 100644
- --- a/test.txt
- +++ b/test.txt
- @@ -1,5 +1,5 @@
- -1
- -2
- +11
- +22
- 3
- 4
- 5
- $ git tree test..master
- * 565b82a (master) thirt at master
- * 1e408a9 second at master
- $ git show 565b82a
- commit 565b82a6319eb1afa5258bed37b640ec9a782679
- Author: Eugen Konkov
- Date: Mon Oct 24 20:36:39 2016 +0300
- thirt at master
- diff --git a/test.txt b/test.txt
- index bcba89f..eb095b3 100644
- --- a/test.txt
- +++ b/test.txt
- @@ -1,5 +1,5 @@
- 11
- -2
- +22
- 3
- 4
- 5
- $ git show 1e408a9
- commit 1e408a975a52fe9f6c32bd6cd7916c4ac082fd85
- Author: Eugen Konkov
- Date: Mon Oct 24 20:36:27 2016 +0300
- second at master
- diff --git a/test.txt b/test.txt
- index 8a1218a..bcba89f 100644
- --- a/test.txt
- +++ b/test.txt
- @@ -1,4 +1,4 @@
- -1
- +11
- 2
- 3
- 4
- $ git diff master...test
- diff --git a/test.txt b/test.txt
- index 8a1218a..ec28619 100644
- --- a/test.txt
- +++ b/test.txt
- @@ -1,5 +1,5 @@
- 1
- 2
- 3
- -4
- -5
- +45
- +56
- $ git diff master...HEAD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement