Git error on git pull (unable to update local ref)

后端 未结 18 1852
鱼传尺愫
鱼传尺愫 2020-12-12 11:25

I only have branch master and im getting this error every time i try to \"git pull\":

error: Couldn\'t set refs/remotes/origin/master
From /var/lib/git/xxx/p         


        
18条回答
  •  無奈伤痛
    2020-12-12 12:26

    with gitbach line commande, use git update-ref to update reference of your local branch:

    $ git update-ref -d refs/remotes/origin/[locked branch name]
    

    then pull using $ git pull

    [locked branch name] is the name of the branch that the error is happening because of mismatch of commit Ids.

提交回复
热议问题