A

Admin • 828.03K Points
Coach

Q. Which command is used to undo the last commit but keep changes?

  • (A) git reset --soft HEAD~1
  • (B) git revert HEAD
  • (C) git undo
  • (D) git remove
  • Correct Answer - Option(A)
  • Views: 1
  • Filed under category Git
  • Hashtags:

Explanation by: Admin
Soft reset removes commit but keeps changes staged.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.