Skip to content

Instantly share code, notes, and snippets.

@miqui
Created October 27, 2015 00:37
Show Gist options
  • Save miqui/8787884f4f193a278b5a to your computer and use it in GitHub Desktop.
Save miqui/8787884f4f193a278b5a to your computer and use it in GitHub Desktop.
git undo merge
Undoing a merge:
$ git pull $REMOTE $BRANCH
# uh oh, that wasn't right
$ git reset --hard ORIG_HEAD
# should be ok now...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment