Command
Git View Commit History Command
The Git command to view commit history is git log.
Quick Answer
- Command
git log
GitCommand
View Commit History
Shows the commit log for the current branch.
How to view commit history in Git
- Open the terminal or command interface for Git.
- Type git log, replace any placeholders, and run it.
Git View Commit History Command
Run git log.
Frequently asked questions
What is the Git command to view commit history?
Run git log.
Where do I type this Git command?
Type it in the terminal or command-line interface used by Git.
Does this Git command work on Mac and Windows?
Yes. The command text is the same on both platforms when the tool is installed.
Official source · How we verify