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

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

    1. go to your project directory
      1. display hidden files (.git folder will appear)
      2. open .git folder
      3. remove MERGE_HEAD
      4. commit again
      5. if git told you that git is locked go back to .git folder and remove index.lock
      6. commit again everything will work fine this time .

提交回复
热议问题