git pull/push: unable to resolve

2017-06-23  本文已影响0人  Very丶Y_
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

再试一次就行了

上一篇 下一篇

猜你喜欢

热点阅读