mirror of
https://github.com/namibia/tips.git
synced 2025-01-03 06:10:19 +00:00
Merge pull request #162 from dmlemos/master
Add alternative for first commit from branch
This commit is contained in:
commit
3853ef2829
@ -984,7 +984,13 @@ git log --all --grep='<given-text>'
|
||||
|
||||
## Get first commit in a branch (from master)
|
||||
```sh
|
||||
git log master..<branch-name> --oneline | tail -1
|
||||
git log --oneline master..<branch-name> | tail -1
|
||||
```
|
||||
|
||||
|
||||
__Alternatives:__
|
||||
```sh
|
||||
git log --reverse master..<branch-name> | head -6
|
||||
```
|
||||
|
||||
## Unstaging Staged file
|
||||
|
@ -395,7 +395,8 @@
|
||||
"tip": "git log --all --grep='<given-text>'"
|
||||
}, {
|
||||
"title": "Get first commit in a branch (from master)",
|
||||
"tip": "git log master..<branch-name> --oneline | tail -1"
|
||||
"tip": "git log --oneline master..<branch-name> | tail -1",
|
||||
"alternatives": ["git log --reverse master..<branch-name> | head -6"]
|
||||
}, {
|
||||
"title": "Unstaging Staged file",
|
||||
"tip": "git reset HEAD <file-name>"
|
||||
|
Loading…
Reference in New Issue
Block a user