View Commit History
git log
This command shows a detailed history of commits in the current branch.
Short Log
git log --oneline
Displays a compact summary of commits with one commit per line.
Limit Number of Commits
git log -n 5
Shows only the last 5 commits.
View Specific File History
git log -- filename.txt
Displays the commit history for a specific file.
Graphical View
git log --graph --oneline --all
Shows a graph of the commit history with branches and merges.