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

后端 未结 24 1475
礼貌的吻别
礼貌的吻别 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 16:45

    for me, removing .git/info/ref kick things going.There shouldn't be a ref file when git is not running. But in my case there were one for whatever reason and caused the problem.

    Removing the file will not remove any of your local commits or branches.

提交回复
热议问题