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
You could use git reflog to find the previous checkout. Sometimes that's a good state you want to return back to.
git reflog
Concretely,
$ git reflog $ git reset --hard HEAD@{0}