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

前端 未结 18 1505
长情又很酷
长情又很酷 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:40

    As the error message says you cannot do a partial commit after a merge. Instead of committing just file.php you should commit all the changes.

    This should work.

    git commit -m "Fixing merge" 
    

提交回复
热议问题