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"

Source: http://www.theint.ro/blogs/outro/4649682-git-for-busy-people-see-what-youre-doing

 

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"

 

Advertisements