mirror of
https://github.com/namibia/tips.git
synced 2025-01-08 16:14:09 +00:00
Add alternatives to get commit hash of initial revision
This commit is contained in:
parent
45ce83ec8f
commit
be87cde44d
@ -545,6 +545,12 @@ git remote prune origin
|
||||
git rev-list --reverse HEAD | head -1
|
||||
```
|
||||
|
||||
|
||||
__Alternatives:__
|
||||
```sh
|
||||
git rev-list --max-parents=0 HEAD
|
||||
```
|
||||
|
||||
## Visualize the version tree.
|
||||
```sh
|
||||
git log --pretty=oneline --graph --decorate --all
|
||||
|
@ -197,7 +197,8 @@
|
||||
"alternatives": ["git remote prune origin"]
|
||||
}, {
|
||||
"title": "Retrieve the commit hash of the initial revision.",
|
||||
"tip": " git rev-list --reverse HEAD | head -1"
|
||||
"tip": " git rev-list --reverse HEAD | head -1",
|
||||
"alternatives": ["git rev-list --max-parents=0 HEAD"]
|
||||
}, {
|
||||
"title": "Visualize the version tree.",
|
||||
"tip": "git log --pretty=oneline --graph --decorate --all",
|
||||
|
Loading…
Reference in New Issue
Block a user