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

后端 未结 10 1487
情深已故
情深已故 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-15 17:09

    I have the same problem. I just used command:

    git reset
    

    Than I removed file /my_project_directory/./git/refs/heads/master and than I can use command

    git reset --hard 
    

提交回复
热议问题