S

Satya • 3.38K Points
Extraordinary

Q. How can you revert the last commit in GitHub using Git?

  • (A) git undo
  • (B) git return
  • (C) git revert HEAD
  • (D) git rollback
  • Correct Answer - Option(C)
  • Views: 18
  • Filed under category GitHub
  • Hashtags:

Explanation by: Satya
'git revert HEAD' creates a new commit that undoes the last commit.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.