-
-
Save miebach/3196797 to your computer and use it in GitHub Desktop.
Git visual log for the console
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.baylus.com/a-nice-visual-log-for-git-command-line/ | |
A nice visual log for Git command line | |
I like having a quick visual log for Gits command line. Here’s a little git alias which’ll display a brief and colorful summary for your projects. | |
Enter the following code in terminal or git bash. | |
You can now generate a visual tree style log, open your shell | |
# show me everything | |
$ git vlog | |
# show the last 6 commits | |
$ git vlog -n6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Git visual log displays commit tree view with who did what when and in which branch | |
git config alias.vlog 'log --graph --date-order --date=relative --pretty=format:"%C(cyan)%h: %Cblue - %an - %Cgreen %C(cyan)%ar:%Creset%n%s%n" --color' | |
# usage: | |
# git vlog | |
# git vlog -n6 | |
# To find a branch for a given commit: | |
# git branch --contains <HASH> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment