File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -545,6 +545,12 @@ git remote prune origin
545
545
git rev-list --reverse HEAD | head -1
546
546
```
547
547
548
+
549
+ __ Alternatives:__
550
+ ``` sh
551
+ git rev-list --max-parents=0 HEAD
552
+ ```
553
+
548
554
## Visualize the version tree.
549
555
``` sh
550
556
git log --pretty=oneline --graph --decorate --all
Original file line number Diff line number Diff line change 197
197
"alternatives" : [" git remote prune origin" ]
198
198
}, {
199
199
"title" : " Retrieve the commit hash of the initial revision." ,
200
- "tip" : " git rev-list --reverse HEAD | head -1"
200
+ "tip" : " git rev-list --reverse HEAD | head -1" ,
201
+ "alternatives" : [" git rev-list --max-parents=0 HEAD" ]
201
202
}, {
202
203
"title" : " Visualize the version tree." ,
203
204
"tip" : " git log --pretty=oneline --graph --decorate --all" ,
You can’t perform that action at this time.
0 commit comments