I did
git merge FETCH_HEAD
and after git told me that there is a conflict in one file, I did
git mergetool
which in my case runs SourceGear DiffMerge as a mergetool GUI. Immediately after saving the merged file, I realized that I had made a bad mistake. I just want to forget about the merger and do it all.
Since I haven't done git add yet, but not to mention that I did something, I thought I could erase my mistake and repeat the merge easily as follows:
git reset FILENAME
git merge FETCH_HEAD
git mergetool
This does not work. "git merge" by this time tells me
fatal: You have not concluded your merge (MERGE_HEAD exists).
Please, commit your changes before you can merge.
But, of course, I do not want to make a convoluted merger. "git mergetool" complains
No files need merging
I assume I made a mistake in the git reset command. What is the right way to do this?
ADD:
I did
git merge
then again:
git merge FETCH_HEAD
error: Your local changes to the following files would be overwritten by merge: ...
git status
:
On branch ....
Your branch is up-to-date with ......
Changes not staged for commit:
modified: nVP.ini
Untracked files:
nVP.ini.orig
no changes added to commit (use "git add" and/or "git commit -a")
: git checkout nVP.ini ?