nerdexam
Cisco

200-901 · Question #327

A developer has addressed a bug that was found in the production code of an application. A separate file named "bug427896191v_fix" has been created with the changes to the code. Which Git command…

The correct answer is C. git merge-file. git merge-file performs a three-way merge on a single file, making it the correct command to incorporate changes from a separate file (bug427896191v_fix) into the production file. It is the file-level equivalent of git merge. git rebase (A) reapplies a series of commits onto a…

Software Development and Design

Question

A developer has addressed a bug that was found in the production code of an application. A separate file named "bug427896191v_fix" has been created with the changes to the code. Which Git command must be used to incorporate the bug fix into the production code?

Options

  • Agit rebase
  • Bgit cat-file
  • Cgit merge-file
  • Dgit bisert

How the community answered

(39 responses)
  • A
    18% (7)
  • B
    8% (3)
  • C
    69% (27)
  • D
    5% (2)

Explanation

git merge-file performs a three-way merge on a single file, making it the correct command to incorporate changes from a separate file (bug427896191v_fix) into the production file. It is the file-level equivalent of git merge. git rebase (A) reapplies a series of commits onto a different base branch - it operates on commits, not individual files. git cat-file (B) is used to inspect Git object types and content, not to merge changes. git bisect (D - note the typo 'bisert' in the question) is a binary search tool used to find which commit introduced a bug, not to merge files.

Topics

#Git#Version Control#Code Integration#File Merging

Community Discussion

No community discussion yet for this question.

Full 200-901 Practice