CompTIA
XK0-004 · Question #187
XK0-004 Question #187: Real Exam Question with Answer & Explanation
The correct answer is D: git checkout master -- file. See the full explanation below for the reasoning.
Question
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?
Options
- Agit branch -b master file
- Bgit merge master testing
- Cgit stash branch master
- Dgit checkout master -- file
Community Discussion
No community discussion yet for this question.