File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -984,7 +984,13 @@ git log --all --grep='<given-text>'
984
984
985
985
## Get first commit in a branch (from master)
986
986
``` sh
987
- git log master..< branch-name> --oneline | tail -1
987
+ git log --oneline master..< branch-name> | tail -1
988
+ ```
989
+
990
+
991
+ __ Alternatives:__
992
+ ``` sh
993
+ git log --reverse master..< branch-name> | head -6
988
994
```
989
995
990
996
## Unstaging Staged file
Original file line number Diff line number Diff line change 395
395
"tip" : " git log --all --grep='<given-text>'"
396
396
}, {
397
397
"title" : " Get first commit in a branch (from master)" ,
398
- "tip" : " git log master..<branch-name> --oneline | tail -1"
398
+ "tip" : " git log --oneline master..<branch-name> | tail -1" ,
399
+ "alternatives" : [" git log --reverse master..<branch-name> | head -6" ]
399
400
}, {
400
401
"title" : " Unstaging Staged file" ,
401
402
"tip" : " git reset HEAD <file-name>"
You can’t perform that action at this time.
0 commit comments