Within my master branch, I did a git merge some-other-branch locally, but never pushed the changes to origin master. I didn\'t mean to merge, so I\'d like to un
git merge some-other-branch
git stash
git branch -d the_local_branch
git checkout -t
git stash apply
This worked for me..!!