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

cisco-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.