Nice looking Git log

October 23, 2019

Time to read: 1 min

One of the most used git command is git log which shows commit logs.

$ git log

I found custom git lg looks more self-sufficient and descriptive. If you want to have this command follow next instruction.

Following image shows what's the difference between custom git lg and git log --oneline.

2019 10 23 git lg

Instruction:

Go to C:\Users\YOURUSERNAME and add code in .gitconfig file:

[alias]
	lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --branches

That's it!

From now on you can call git lg and have new view in terminal. Enjoy!