ExamGecko
Question list
Search
Search

Question 363 - 200-901 discussion

Report
Export

Which command reverses the last commit without changing the index file or the working tree position?

A.

git revert HEAD

Answers
A.

git revert HEAD

B.

git reset --hard HEAD~3

Answers
B.

git reset --hard HEAD~3

C.

git reset --soft HEAD^

Answers
C.

git reset --soft HEAD^

D.

git revert

Answers
D.

git revert

Suggested answer: C

Explanation:


asked 07/10/2024
Letlhogonolo Phiri
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first