I have 10 files which have conflicts when merging branches. I’ve resolved all conflicts of the 10 files(took long time). Unfortunately before the commit, I find out that one file has been merged wrong and need start again for this file. 🙁
in the Git, How to mark the file which has been merged unmerged, in other word, how to re-merge that one file?
This will remove it from the index, and revert back to a “conflicted” file that has all of the markers required to then do a merge.
From the git help checkout man page:
(The last sentence is the most important one).
Here is a blog post that describes why it was added and how it is not possible with older versions of git: http://gitster.livejournal.com/43665.html