nerdexam
Cisco

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.

Software Development and Design

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)
  • C
    94% (15)
  • D
    6% (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

#Git#Version Control#Code History#Developer Tools

Community Discussion

No community discussion yet for this question.

Full 200-901 Practice