Developing Applications and Automating Workflows Using Cisco Platforms (DEVASC) — Question 350

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?

Answer options

Correct answer: C

Explanation

The correct answer is C, 'git merge-file', which is used to merge changes from a file into another, particularly useful for incorporating bug fixes. The other options do not serve this purpose: 'git rebase' is used for rewriting commit history, 'git cat-file' is for displaying object information, and 'git bisert' is a typo of 'git bisect', which is used for finding bugs in the commit history.