git log is a great tool to see the commit history of a project. The default output can be a little noisy and not exactly helpful.
Unsurprisingly, there are plenty of formatting options in the documentation.
Here are a few aliases that I’ve found useful:
Branch and commit message
alias gl='git log --decorate --pretty=oneline --abbrev-commit'
Committer, when it was committed and commit message
alias gla='git log --pretty=format:"%C(yellow)%h%C(reset) - %an [%C(green)%ar%C(reset)] %s"'
grep to search the logs for keywords
alias glog='git log -E -i --grep'