Back

Explore Courses Blog Tutorials Interview Questions
+1 vote
2 views
in DevOps and Agile by (29.3k points)

I saw a lot of questions about methods of using git blame but I don't really understand them.

I see a blame button on top of files on the github interface. Upon clicking it, It shows some diff with usernames on the left bar. What does that indicate?

Why is git blame actually used, apart from GitHub?

1 Answer

+1 vote
by (50.2k points)

git blame does not show the history of the per-line modifications. It only shows who was the last person to have changed a line in a document up to the last commit in HEAD.

If you need to see the full history/log of a document line, you would need to run a git blame path/to/file for each commit in your git log.

Refer: http://git-scm.com/docs/git-blame

Browse Categories

...