CS FundamentalsModerateWipro · Cognizant technical pattern

Which Git command shows, line by line, the commit and author that last modified each line of a file?

  1. A. git log --oneline
  2. B. git blame
  3. C. git diff
  4. D. git show

Correct answer: B. git blame

git blame annotates every line with the commit, author and date of its last change. git log lists commits, git diff compares versions, and git show displays one commit.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic