git stop merge

CSS
git merge --abortgit reset --hard HEAD
Source

Also in CSS: