What is the command to undo the last commit in Git?
What is the command to undo the last commit in Git? a) git reset –hard HEAD^ b) git revert HEAD c) Both a and b d) git delete HEAD Answer: c) Both a and b Explanation: In Git, you can undo the last commit using either git reset –hard HEAD^ or git revert HEAD. The […]
What is the command to undo the last commit in Git? Read More »