Add alternatives to get commit hash of initial revision

This commit is contained in:
S N Munendra 2016-06-29 22:10:25 +05:30
parent 45ce83ec8f
commit be87cde44d
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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",