git merge --abort
git reset --hard HEAD
// отмена слияния git reset --merge git merge --abort
git reset --hard HEAD~1 git reset --hard