0

I accidentally ran git merge some_other_branch on my local master branch. I haven’t pushed the changes to origin master. How do I undo the merge?

After merging, git status says:
# On branch master
# Your branch is ahead of ‘origin/master’ by 5 commits.

How do I undo all these commits?

Kuldeep Baberwal Changed status to publish February 4, 2025