Visualize the version tree.

This commit is contained in:
Hemanth.HM 2015-08-30 20:32:40 +05:30
parent e9e75fed9e
commit 8746905b37
2 changed files with 17 additions and 0 deletions

View File

@ -55,6 +55,7 @@
* [Modify previous commit without modifying the commit message](https://github.com/git-tips/tips#modify-previous-commit-without-modifying-the-commit-message)
* [Purnes branches that have been deleted in the remote.](https://github.com/git-tips/tips#purnes-branches-that-have-been-deleted-in-the-remote)
* [Retrieve the commit hash of the initial revision.](https://github.com/git-tips/tips#retrieve-the-commit-hash-of-the-initial-revision)
* [Visualize the version tree.](https://github.com/git-tips/tips#visualize-the-version-tree)
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end toc -->
@ -389,5 +390,16 @@ git remote prune origin
git rev-list --reverse HEAD | head -1
```
## Visualize the version tree.
```sh
git log --pretty=oneline --graph --decorate --all
```
__Alternatives:__
```sh
gitk --all
```
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end -->

View File

@ -217,5 +217,10 @@
{
"title": "Retrieve the commit hash of the initial revision.",
"tip": " git rev-list --reverse HEAD | head -1"
},
{
"title": "Visualize the version tree.",
"tip": "git log --pretty=oneline --graph --decorate --all",
"alternatives":["gitk --all"]
}
]