ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 261 - 350-901 discussion

Report
Export

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

Answers
A.

git delete HEAD devcoreg13642911.jpg

B.

git remove HEAD devcoreg13642911.jpg

Answers
B.

git remove HEAD devcoreg13642911.jpg

C.

git reset HEAD devcoreg13642911.jpg

Answers
C.

git reset HEAD devcoreg13642911.jpg

D.

git revert HEAD devcoreg13642911.jpg

Answers
D.

git revert HEAD devcoreg13642911.jpg

Suggested answer: C
asked 10/10/2024
Petya Pavlova
43 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first