Skip to content

Instantly share code, notes, and snippets.

@keckelt
Created March 12, 2019 08:02
Show Gist options
  • Save keckelt/0b5982d83bb93bfa2827cf4f4d564f0a to your computer and use it in GitHub Desktop.
Save keckelt/0b5982d83bb93bfa2827cf4f4d564f0a to your computer and use it in GitHub Desktop.
# Source: https://coderwall.com/p/euwpig/a-better-git-log
# example: git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
# config:
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
# execute: git lg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment