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

QuestionsCategory: 200-901Which command reverses the last commit without changing the index file or the working tree position?
Admin Staff asked 10 months ago
Which command reverses the last commit without changing the index file or the working tree position?

A. git revert HEAD

B. git reset --hard HEAD~3

C. git reset --soft HEAD^

D. git revert










Correct Answer: C

This question is in 200-901 exam
For getting Cisco Certified DevNet Associate Certificate


Next Post

Recommended

Welcome Back!

Login to your account below

Create New Account!

Fill the forms below to register

Retrieve your password

Please enter your username or email address to reset your password.