Which git command must be used to unstage the file?

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

Answer: C

Latest 350-901 Dumps Valid Version with 169 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments