Skip to content

Instantly share code, notes, and snippets.

@miebach
Forked from asabaylus/git-vlog
Created July 29, 2012 08:48
Show Gist options
  • Save miebach/3196797 to your computer and use it in GitHub Desktop.
Save miebach/3196797 to your computer and use it in GitHub Desktop.
Git visual log for the console
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
# 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