Better git log with git ls

Author

Dheepak Krishnamurthy

Published

June 2, 2015

Keywords

Git tips and tricks

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

Reuse

Citation

BibTeX citation:
@online{krishnamurthy2015,
  author = {Krishnamurthy, Dheepak},
  title = {Better Git Log with Git Ls},
  date = {2015-06-02},
  url = {https://kdheepak.com/blog/better-git-log-with-git-ls/},
  langid = {en}
}
For attribution, please cite this work as:
D. Krishnamurthy, “Better git log with git ls,” Jun. 02, 2015. https://kdheepak.com/blog/better-git-log-with-git-ls/.