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/pre...
用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
更多推荐
所有评论(0)