public
Last active

Git visual log for the console

  • Download Gist
git-vlog
1 2
# Git visual log displays commit tree view with who did what when and in which branch
git config --global alias.vlog 'log --graph --date-order --date=relative --pretty=format:"%C(cyan)%h: %Cblue - %an - %Cgreen %C(cyan)%ar:%Creset%n%s%n" --color'

For consoles with a dark background:

git config alias.vlog 'log --graph --date-order --date=relative --pretty=format:"%C(white)%h: %Cgreen - %an - %Cred %C(cyan)%ar:[B%Creset%n%s%n" --color'

to use navigate into your git repo and run

# all commits
$ git vlog

# last 6 commits
$ git vlog -n 6

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.