A developer is working in a branch to develop a new feature named 'newfeat404880077'. A file named 'devcoreg13642911.jpg' has accidentally been staged. This needs to be removed so that the commit is performed and branches merged. Which git command must be used to unstage the file?
Suggested Answer: C
Get Premium 350-901 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
12 comments · newest first
EL
Eleonora
11 months ago
Yeah, C makes the most sense here.
ME
Merissa
12 months ago
I thought git revert was for undoing commits, not unstaging files?
CA
Caitlin
12 months ago
Wait, are we sure it's not git remove?
LE
Leonor
1 year ago
Agreed, C is the right choice!
SA
Sage
1 year ago
It's definitely git reset HEAD for unstaging.
JI
Jina
1 year ago
I feel like "git revert" is for undoing commits, not unstaging files. So, I guess that leaves "git reset" as the best option.
TH
Thurman
1 year ago
I'm a bit confused about the options. I thought "git remove" was a command, but it doesn't sound right for unstaging.
MI
Micaela
1 year ago
I remember practicing a similar question, and I think "git reset HEAD" was the right choice for unstaging.
TR
Trinidad
1 year ago
I think the command to unstage a file is something like "git reset," but I'm not sure if it's exactly that.
MA
Mammie
1 year ago
I've got this! The TOGAF Architecture Development Method is the core process for developing an enterprise architecture, so that's the answer I'm going with.
JA
Jaclyn
1 year ago
I think this is a pretty straightforward question. Fiscal policy is about the government's use of taxation and spending to influence the economy, so the correct answer is C.
LI
Lizbeth
1 year ago
I think the answer is D - you should focus on your customer's business problems. That's the core of consultative selling, right?