用git pull 拉取远程分支 

报错

➜  api git:(master) git pl       
error: cannot lock ref 'refs/remotes/origin/test/pressure-test': 'refs/remotes/origin/test' exists; cannot create 'refs/remotes/origin/test/pressure-test'

! [new branch]          test/pressure-test -> origin/test/pressure-test  (unable to update local ref)

网上看了一大堆,大致意思是 你的远程仓的名字和云远程仓的名字一样

但是你本地记录的远程仓的id和远程的id不一致,所以分支就被锁了(个人理解)

提示 refs/remotes/origin/test' exists;已经存在 删除就解决了


➜  api git:(master) git update-ref -d refs/remotes/origin/test
➜  api git:(master) git pl     

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐