Command
git logExplanation
git log is used to show commit logs. It shows the commit logs.
Examples
Compact one-line format
git log --onelineVisual graph of all branches
git log --graph --allShow patch/diff for each commit
git log -pgit loggit log is used to show commit logs. It shows the commit logs.
Compact one-line format
git log --onelineVisual graph of all branches
git log --graph --allShow patch/diff for each commit
git log -p