Skip to content

Instantly share code, notes, and snippets.

@asabaylus
Last active June 21, 2022 20:45
Show Gist options
  • Save asabaylus/1468122 to your computer and use it in GitHub Desktop.
Save asabaylus/1468122 to your computer and use it in GitHub Desktop.
Git visual log for the console
# 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'
@v-a-1
Copy link

v-a-1 commented Sep 15, 2012

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'

@asabaylus
Copy link
Author

to use navigate into your git repo and run

# all commits
$ git vlog

# last 6 commits
$ git vlog -n 6

@ericzon
Copy link

ericzon commented Feb 9, 2016

There's a typo on the dark background version:
git config alias.vlog 'log --graph --date-order --date=relative --pretty=format:"%C(white)%h: %Cgreen - %an - %Cred %C(cyan)%ar:%Creset%n%s%n" --color'

Thx for this alias

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment