Git and nasty “error: cannot lock existing info/refs fatal”

后端 未结 24 1451
礼貌的吻别
礼貌的吻别 2020-11-30 15:58

After cloning from remote git repository (at bettercodes) I made some changes, commited and tried to push:

git push origin master

Errors

24条回答
  •  眼角桃花
    2020-11-30 17:02

    I had this issue because I was on a branch that had a similar name to an upstream branch. i.e. the upstream branch was called example-branch and my local branch was called example-branch/backend. The solution was changing the name of my local branch like so:

    git branch -m 
    

提交回复
热议问题