how to cancel mergin in git hub usin git bash code example Example 1: cancel merge git merge --abort Example 2: git stop merge git reset --hard HEAD