Answers for "git cancel current merge"

23

cancel merge

git merge --abort
Posted by: Guest on June-15-2020
5

git stop merge

git reset --hard HEAD
Posted by: Guest on May-12-2020
1

undo merge

// find the commit hash
git log --oneline

git revert -m 1 [commit-hash]

// https://www.datree.io/resources/git-undo-merge
Posted by: Guest on October-01-2020

Browse Popular Code Answers by Language