Git Log compact on Terminal

The default git log showing on the terminal sometimes can be quite difficult to read. Here a command you can add to make it more readable.

git log --graph --pretty="format:%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset"



For me, I need to filter further more the commit range, so I use –since=”1 week ago” for my need.

git log --graph --pretty="format:%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset" --since="1 week ago"