Developing Applications Using Cisco Core Platforms and APIs (DEVCOR) — Question 204

A developer in a team of distributed authors is working on code in an isolated Git branch named 'update1a2b3456789'. The developer attempts to merge the new code with a branch named 'dvcapp9a8b7654321' however the merge operation encounters a conflict error during the process. Which Git command must the developer use to exit from the merge process and return the branch to the previous state?

Answer options

Correct answer: D

Explanation

The correct command to cancel a merge in Git is 'git merge --abort', which effectively stops the merge process and returns the repository to its previous state. The other options provided are not valid Git commands and will not achieve the desired result of exiting the merge process.