Suppose you are in a branch topic, you have been working for some time and want to merge some commits from master.
You run git merge, and there are several conflicts. But now you do not have time to resolve merge conflicts, and you want to return to the state you were in before starting git merge.
There are three ways that I know for this:
git merge --abortgit reset --mergegit reset --hard HEAD?
Is any of the three acceptable? What is the difference between the two in this case?
source
share