Check out example codes for "git stop merge". It will help you in understanding the concepts better.

Code Example 1

git reset --hard HEAD

Code Example 2

git merge --abort

Code Example 3

Abandon merge with these commands

Learn ReactJs, React Native from akashmittal.com