Drop this gist into your ~/.(ba|z)shrc file and you can have this awesome git log at your fingertips, complete with a simple visualization of your repository tree.


alias gl='git log --graph --pretty=format:"%Cred%h%Creset — %s %Cgreen(%cr)%Creset" --abbrev-commit --date=relative'
dxoigmnover 1 year ago

Pretty sweet! Alternatively, you could also put the following in your ~/.gitconfig under the alias section.

[alias]
lg = log —graph —pretty=format:\“%Cred%h%Creset – %s %Cgreen(%cr)%Creset\” —abbrev-commit —date=relative

Then you just invoke it like so: git lg

Say your thing

Name:
Email:
URL:
$0.02: