From: Junio C Hamano Date: Fri, 08 Jul 2011 00:36:45 GMT Subject: Re: Redoing a merge for a particular file Message-ID: <7vaacphale.fsf@alter.siamese.dyndns.org> In-Reply-To: Chris Packham writes: > $ git merge topic > Auto-merging foo.c > CONFLICT (content): Merge conflict in foo.c > Auto-merging bar.c > CONFLICT (content): bar.c > Auto-merging otherfile1.c > Auto-merging otherfile2.c > Auto-merging otherfile3.c > Resolved 'foo.c' using previous resolution. > Resolved 'bar.c' using previous resolution. > Automatic merge failed; fix conflicts and then commit the result. > $ git mergetool > No files need merging > > So rerere has remembered the bad resolution of foo.c. I would do this: $ git rerere forget foo.c $ git checkout -m foo.c then fix it up and $ git add foo.c $ git commit