Git cannot lock ref 'HEAD': unable to resolve reference HEAD

后端 未结 10 1482
情深已故
情深已故 2020-12-15 16:57

I\'m trying to commit the changes to my repository but I receive the error below:

git -c diff.mnemonicprefix=false -c core.quotepath=false commit -q -F C:\\U         


        
10条回答
  •  遥遥无期
    2020-12-15 17:13

    I had the same problem, this worked for me:

    Step 1) - got to .git\logs\refs\heads and open the Document named as YOUR_BRANCH, now copy the ID -numbers in front of your user name and email-

    Step 2) - got to .git\refs\heads and open the document named as YOUR_BRANCH delete the line and paste the ID in.

    Hope it works for you to

提交回复
热议问题