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>'
984984
985985## Get first commit in a branch (from master)
986986``` 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
988994```
989995
990996## Unstaging Staged file
Original file line number Diff line number Diff line change 395395 "tip" : " git log --all --grep='<given-text>'"
396396}, {
397397 "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" ]
399400}, {
400401 "title" : " Unstaging Staged file" ,
401402 "tip" : " git reset HEAD <file-name>"
You can’t perform that action at this time.
0 commit comments