git pull/push: unable to resolve reference & unable to update local ref

来源:互联网 发布:河南卫视网络直播 编辑:程序博客网 时间:2024/05/29 19:11
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
再试一次就行了