mirror of
https://github.com/namibia/tips.git
synced 2025-02-03 12:08:23 +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
|
git rev-list --reverse HEAD | head -1
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
__Alternatives:__
|
||||||
|
```sh
|
||||||
|
git rev-list --max-parents=0 HEAD
|
||||||
|
```
|
||||||
|
|
||||||
## Visualize the version tree.
|
## Visualize the version tree.
|
||||||
```sh
|
```sh
|
||||||
git log --pretty=oneline --graph --decorate --all
|
git log --pretty=oneline --graph --decorate --all
|
||||||
|
@ -197,7 +197,8 @@
|
|||||||
"alternatives": ["git remote prune origin"]
|
"alternatives": ["git remote prune origin"]
|
||||||
}, {
|
}, {
|
||||||
"title": "Retrieve the commit hash of the initial revision.",
|
"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.",
|
"title": "Visualize the version tree.",
|
||||||
"tip": "git log --pretty=oneline --graph --decorate --all",
|
"tip": "git log --pretty=oneline --graph --decorate --all",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user