200-901 · Question #532
A developer is working on a new feature and finds an old piece of code that must be discussed. The developer wants to find the original coders for the code to discuss the issue. Which Git command…
The correct answer is C. git blame filename. The git blame command, when used with a specific filename, shows the revision and author information for each line of the file. It annotates the file with details about who last modified each line and in which commit.
Question
A developer is working on a new feature and finds an old piece of code that must be discussed. The developer wants to find the original coders for the code to discuss the issue. Which Git command annotates the listing of the source file with the author that created or last edited a line?
Options
- Acat filename | git diff
- Bgit log
- Cgit blame filename
- Dgit reflog
How the community answered
(16 responses)- C94% (15)
- D6% (1)
Explanation
The git blame command, when used with a specific filename, shows the revision and author information for each line of the file. It annotates the file with details about who last modified each line and in which commit.
Topics
Community Discussion
No community discussion yet for this question.