git/log

View Commit History

Show commit logs

git
log
history

Command

git log

Explanation

git log is used to show commit logs. It shows the commit logs.

Examples

Compact one-line format

git log --oneline

Visual graph of all branches

git log --graph --all

Show patch/diff for each commit

git log -p