cancel a merge git
git merge --abort
git undo merge
git reset --hard HEAD~1
Undo git merge
git reset --merge HEAD~1
git undo merge
git reset --hard HEAD~1
git reset --hard <commit_sha>
revert last merge git
git revert -m 1 commit_hash
undo merge
// find the commit hash
git log --oneline
git revert -m 1 [commit-hash]
// https://www.datree.io/resources/git-undo-merge
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us