git log
Show commit history
InfoSyntax
git log [options]
Examples
git log --oneline— log --onelinegit log --graph --all— log --graph --allgit log -n 5— log -n 5
Common flags & options
- •--oneline Compact format
- •--graph Show branch graph
- •-n N Limit commits
- •--all All branches