Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Cisco 350-901 Exam - Topic 13 Question 37 Discussion

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?
C) git reset HEAD devcoreg13642911.jpg
A) git delete HEAD devcoreg13642911.jpg
B) git remove HEAD devcoreg13642911.jpg
D) git revert HEAD devcoreg13642911.jpg

Cisco 350-901 Exam - Topic 13 Question 37 Discussion

Actual exam question for Cisco's 350-901 exam
Question #: 37
Topic #: 13
[All 350-901 Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

0/2000 characters
Eleonora
10 months ago
Yeah, C makes the most sense here.
upvoted 0 times
...
Merissa
10 months ago
I thought git revert was for undoing commits, not unstaging files?
upvoted 0 times
...
Caitlin
10 months ago
Wait, are we sure it's not git remove?
upvoted 0 times
...
Leonor
11 months ago
Agreed, C is the right choice!
upvoted 0 times
...
Sage
11 months ago
It's definitely git reset HEAD for unstaging.
upvoted 0 times
...
Jina
11 months ago
I feel like "git revert" is for undoing commits, not unstaging files. So, I guess that leaves "git reset" as the best option.
upvoted 0 times
...
Thurman
11 months ago
I'm a bit confused about the options. I thought "git remove" was a command, but it doesn't sound right for unstaging.
upvoted 0 times
...
Micaela
11 months ago
I remember practicing a similar question, and I think "git reset HEAD" was the right choice for unstaging.
upvoted 0 times
...
Trinidad
11 months ago
I think the command to unstage a file is something like "git reset," but I'm not sure if it's exactly that.
upvoted 0 times
...
Mammie
11 months 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.
upvoted 0 times
...
Jaclyn
11 months 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.
upvoted 0 times
...
Lizbeth
11 months ago
I think the answer is D - you should focus on your customer's business problems. That's the core of consultative selling, right?
upvoted 0 times
...

Save Cancel