git log

Git can be pretty verbose when running git log on your terminal which makes getting and overview pretty hard.

The solution

Add the following to your .gitconfig:

  l = log --graph --format='%C(yellow)%h%Creset - %s %Cgreen(%cr) %C(blue)%an %Creset'

Running ~git l~ will present the commits, one per line and even visualize merges.


(The real thing is more colorful.)

* 09a50b0 - Only preload code font on pages with code (25 hours ago) Arne Bahlo
* 5473803 - Make titles point to permalink (25 hours ago) Arne Bahlo
* bc3c745 - Use Iosevka for code blocks (25 hours ago) Arne Bahlo
Edit this page on GitHub