Skip to content
kd
1 Jun 2015
Back to blog

Better git log with git ls

1 min read (5 words)

Add the following command to ~/.gitconfig:

[alias]
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/


Patched fonts madness
Vim, tmux and zsh — the productivity trio