ExamGecko
Question list
Search
Search

Question 374 - 200-901 discussion

Report
Export

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?

A.

Run the git add . command again in the correct subdirectory to ensure changes added to the staging area.

Answers
A.

Run the git add . command again in the correct subdirectory to ensure changes added to the staging area.

B.

Run the git commit command before the differences are compared to receive the end state of the code.

Answers
B.

Run the git commit command before the differences are compared to receive the end state of the code.

C.

Run the git status command to see the differences between current and previous code review stages.

Answers
C.

Run the git status command to see the differences between current and previous code review stages.

D.

Run the git diff --staged command to compare the code added to the staging area.

Answers
D.

Run the git diff --staged command to compare the code added to the staging area.

Suggested answer: D

Explanation:


asked 07/10/2024
Tim Pass
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first