could not open git/commit_editmsg

前端 未结 6 1745
自闭症患者
自闭症患者 2021-01-12 17:43

I have a git repository linked to a dropbox folder. Recently, I have switched my laptop to another, and now i can not perform the function \"git commit -am\". I keep getting

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-12 18:36

    Assuming you're on a Windows machine, the chances are that you modified a hidden file and no longer have write permissions to the hidden file.

    To solve this, simply navigate to your .git folder and delete the "COMMIT_EDITMSG" file.

提交回复
热议问题