git merge cancel code example Example 1: abort merge git Click to copygit merge --abort Example 2: git merge cancel Click to copygit merge --abort