Add the following command to ~/.gitconfig:
ls = log --graph --abbrev-commit --decorate --color=always --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) - %C(dim red)%an%C(reset)%C(bold yellow)%d%C(reset)' --all
Citation
@online{krishnamurthy2015bettergitlogwithgitls,
author = {Dheepak Krishnamurthy},
title = {Better git log with git ls},
year = {2015},
date = {2015-06-01},
url = {https://kdheepak.com/blog/better-git-log-with-git-ls/},
langid = {en},
}
For attribution, please cite this work as:
Dheepak Krishnamurthy, "Better git log with git ls", June 1, 2015 https://kdheepak.com/blog/better-git-log-with-git-ls/