how to remove merging in git bash code example Example 1: abort merge git git merge --abort Example 2: cancel a merge git git merge --abort