Last Updated: February 25, 2016
·
1.883K
· ydbondt

Git live log (without flickering)

I've tried using that nifty loglive for Git that everyone is talking about.
For some reason it flickered on every refresh on my Ubuntu machine. So I've rewritten some of it.

#!/bin/bash    

watch --color "git --no-pager log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ci) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --all -20"

It's also on gist: https://gist.github.com/3879242