Git error on commit after merge - fatal: cannot do a partial commit during a merge

前端 未结 18 1487
长情又很酷
长情又很酷 2020-12-07 07:15

I ran a git pull that ended in a conflict. I resolved the conflict and everything is fine now (I used mergetool also).

When I commit the resolved file

18条回答
  •  独厮守ぢ
    2020-12-07 07:33

    If it is in Source Tree, we should explicitly mark a file as resolved after the conflicts are resolved. Select file that was just resolved to no conflicts. Then Actions -> Resolve Conflicts -> Mark Resolved. If you have multiple files, do the same for all. Commit now.

提交回复
热议问题