error: cannot lock ref 'refs/remotes/origin/test/pressure-test': 'refs/remotes/origin/test' exists;
·
用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
AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。
更多推荐


所有评论(0)