Skip to content

Instantly share code, notes, and snippets.

@evanslai
Last active May 15, 2018 01:44
Show Gist options
  • Save evanslai/fd1e09f9460a4fabfb3563a10eff69b2 to your computer and use it in GitHub Desktop.
Save evanslai/fd1e09f9460a4fabfb3563a10eff69b2 to your computer and use it in GitHub Desktop.
Git: show graphical commit history #git
git config --global alias.sb "log --graph --pretty=format:'%Cred%h%Creset %Cgreen(%cr) -%C(yellow)%d%Creset %s %C(bold blue)<%an>%Creset%n' --abbrev-commit --branches"
// Oneline
git log --pretty="%C(Yellow)%h %C(reset)%ad (%C(Green)%cr%C(reset))%x09 %C(Cyan)%an: %C(reset)%s" --date=short
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment