Skip to content

Git Log

Pretty git log

alias gl='git log --all --color --graph --pretty=format:'"'"'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'"'"' --abbrev-commit'

More here.

See git log for specific branch

First, use git log with fancy coloring.

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

More here.

Usage:

glb origin/master..some branch

Since

git log --since="1 month ago"
git log --since="3 days ago"

Max count

git log --max-count=100