A Better Git Log

June 10, 2016

I’ve always been kind of frustrated with the standard implementation of the git log. It seems like I always find myself using third party tools when wanting to view the history in git.

This is an alias that you can use to create a pretty git log using “git prettylog”, it shows you commit messages, user, and even branches and merges.

git config --global alias.prettylog "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"

Profile picture

Hi, I'm Brock. I'm a Software Engineer at Microsoft. You should come learn with me. Oh, and you should also follow me on Twitter. 😊

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer’s view in any way.

© 2024, Brock Taylor. Built with Gatsby. Powered by Azure.