Skip to content
Discussion options

You must be logged in to vote

If the merge has not been completed yet, you can safely abandon the conflict resolution and start over by aborting the merge. When working locally, running git merge --abort will cancel the merge and restore the branch to its state before the conflict occurred. If the conflict was already resolved but not committed, you can restore the correct version of the affected files and re-stage them before continuing. If the merge commit has already been created, you can reset the branch to the commit before the merge using a hard reset. When conflicts are resolved using GitHub’s web interface, there is no direct undo option, so the only way to recover is to close the pull request or push a new co…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Rod-at-DOH
Comment options

Answer selected by Rod-at-DOH

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pull Requests Propose, review, and discuss changes to a repository's codebase Question Ask and answer questions about GitHub features and usage
3 participants