Another git process seems to be running in this repository

后端 未结 28 2221
梦谈多话
梦谈多话 2020-11-29 14:34

I\'m trying to learn how to use Git and have created a small project with an HTML, CSS, and Javascript file. I made a branch from my basically empty project and then made so

28条回答
  •  醉梦人生
    2020-11-29 14:42

    Deleting my commit message worked for me.

    rm .git/COMMIT_EDITMSG
    

    It then said.

    fatal: cannot lock ref 'HEAD': Unable to create '.git/refs/heads/[your-branch-name].lock': File exists.

    Do notice that your branch name might be different than mine. You can delete this lock file by doing;

    rm .git/refs/heads/[your-branch-name].lock
    

    Hope this helps someone.

提交回复
热议问题