What is git blame?
Terminal output
$ git blame page.txt
^555961f (Robin Sharma 2026-01-10 10:42:00 +0000 1) Title
a88d5160 (Robin Sharma 2026-01-10 10:56:00 +0000 2) Line 2 updated
a88d5160 (Robin Sharma 2026-01-10 10:56:00 +0000 3) Line 3
Each line shows the short commit hash, the author, the date and the line. With the hash, run git show <hash> to see the full change and message. In VS Code and GitHub, the “blame” view shows the same.
Learn more about the similar topics:
| Tutorials |
|---|
| Git Tag |
| Git Submodule |
| Git Hooks |
| Exercises & Assignments |
|---|
| Create an annotated tag for a release |
| Interview Questions & Answers |
|---|
| What is a git submodule? |
| What is the difference between a lightweight tag and an annotated tag in Git? |
| What are Git hooks? |
| What is git blame? |
| What is git bisect? |