Exam4Training

Which of the following is the BEST option to resolve the issue?

An issue was discovered on a testing branch of a Git repository. A file was inadvertently modified and needs to be reverted to the master branch version.

Which of the following is the BEST option to resolve the issue?
A . git branch -b master file
B . git merge master testing
C . git stash branch master
D . git checkout master — file

Answer: D

Explanation:

Reference: https://www.git-scm.com/book/en/v2/Git-Basics-Undoing-Things

Latest XK0-004 Dumps Valid Version with 267 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Exit mobile version