git stop a merge code example Example 1: git merge abort Click to copygit merge --abort Example 2: git stop merge Click to copygit reset --hard HEAD