DEV Community

Discussion on: 5 Great Git CLI Shortcuts

Collapse
 
zenphp profile image
Jason Murray

I use this to set git lg to be a cleaner overview of history:

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"

Results in a nice tree view of history showing authors, hashes, titles and the tag/branch names.