Cisco
200-901 · Question #386
A file in a local Git repository has been updated and issued the git add . command. The git diff command has been run to compare the changes to the previous commit, but nothing shows. Which action ide
Sign in or unlock 200-901 to reveal the answer and full explanation for question #386. The question stem and answer options stay visible for context.
Software Development and Design
Question
A file in a local Git repository has been updated and issued the git add . command. The git diff command has been run to compare the changes to the previous commit, but nothing shows. Which action identifies the problem?
Options
- ARun the git add . command again in the correct subdirectory to ensure changes added to the
- BRun the git commit command before the differences are compared to receive the end state of the
- CRun the git status command to see the differences between current and previous code review
- DRun the git diff --staged command to compare the code added to the staging area.
Unlock 200-901 to see the answer
You've previewed enough free 200-901 questions. Unlock 200-901 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#Git#Version Control#Staging Area#Git Commands