Skip to content

Commit 8746905

Browse files
committed
Visualize the version tree.
1 parent e9e75fe commit 8746905

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
* [Modify previous commit without modifying the commit message](https://github.com/git-tips/tips#modify-previous-commit-without-modifying-the-commit-message)
5656
* [Purnes branches that have been deleted in the remote.](https://github.com/git-tips/tips#purnes-branches-that-have-been-deleted-in-the-remote)
5757
* [Retrieve the commit hash of the initial revision.](https://github.com/git-tips/tips#retrieve-the-commit-hash-of-the-initial-revision)
58+
* [Visualize the version tree.](https://github.com/git-tips/tips#visualize-the-version-tree)
5859

5960
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
6061
<!-- @doxie.inject end toc -->
@@ -389,5 +390,16 @@ git remote prune origin
389390
git rev-list --reverse HEAD | head -1
390391
```
391392

393+
## Visualize the version tree.
394+
```sh
395+
git log --pretty=oneline --graph --decorate --all
396+
```
397+
398+
399+
__Alternatives:__
400+
```sh
401+
gitk --all
402+
```
403+
392404
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
393405
<!-- @doxie.inject end -->

tips.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,5 +217,10 @@
217217
{
218218
"title": "Retrieve the commit hash of the initial revision.",
219219
"tip": " git rev-list --reverse HEAD | head -1"
220+
},
221+
{
222+
"title": "Visualize the version tree.",
223+
"tip": "git log --pretty=oneline --graph --decorate --all",
224+
"alternatives":["gitk --all"]
220225
}
221226
]

0 commit comments

Comments
 (0)