美文网首页
git pull/push: unable to resolve

git pull/push: unable to resolve

作者: Very丶Y_ | 来源:发表于2017-06-23 09:58 被阅读0次
    git pull/push origin xxx 
    

    报错如下

    error: cannot lock ref 'refs/remotes/origin/xxx': unable to resolve reference refs/remotes/origin/xxx: Invalid argument
     ! [new branch]      xxx  -> origin/xxx(unable to update local ref)
    

    解决方案:

    rm .git/refs/remotes/origin/xxx
    

    再试一次就行了

    相关文章

      网友评论

          本文标题:git pull/push: unable to resolve

          本文链接:https://www.haomeiwen.com/subject/tnoqcxtx.html