用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

error: cannot lock ref 'refs/remotes/origin/test/pressure-test': 'refs/remotes/origin/test' exists;相关推荐

  1. error: cannot lock ref 'refs/remotes/origin/master': unable to resolve reference 'refs/remotes/origi

    当本地修改代码,然后远程也修改了代码时,想要拉取远程最新代码覆盖本地代码 1).查看本地修改 git status 2).隐藏本地修改 git stash 3).拉取远程最新代码git pull,失败 ...

  2. error: cannot lock ref ‘refs/remotes/origin/release/xxxx‘: ‘refs/remotes/origin/release‘ 已存在,无法创建

    在一次远程拉取release 分支的时候提示error: cannot lock ref 'refs/remotes/origin/release/xxxx': 'refs/remotes/origi ...

  3. error: cannot lock ref ‘refs/remotes/origin/master‘

    error: cannot lock ref 'refs/remotes/origin/master' 报错信息 remote: Azure Repos remote: Found 41 object ...

  4. 2021-07-12Git - git pull时遇到error: cannot lock ref ‘refs/remotes/origin/master‘: unable to resolve...

    git pull时遇到问题及解决方法 问题描述: 解决方法及原因分析: 1.git log 错误: 解决方法:修复 .git/refs/heads/分支名 原因分析:IDE的错误关闭 2.git pu ...

  5. remote: error: cannot lock ref ‘refs/heads/dev/mz/dev‘: ‘refs/heads/dev‘ exists; cannot create ‘refs

    remote: error: cannot lock ref 'refs/heads/dev/mz/dev': 'refs/heads/dev' exists; cannot create 'refs ...

  6. 【Git】remote: error: cannot lock ref

    remote: error: cannot lock ref 今天拉了一个dev/pay/1.4.3 分支,push 时候出错: remote: error: cannot lock ref 'ref ...

  7. windows git fetch 时报错error: cannot lock ref ‘refs/remotes/origin/feature-1‘: there is a non-empty di

    解决方式   看报错知道是存在feature-1这样的分支,导致在fetch或者pull的时候,发现该分支不为空而失败:同理其他cannot lock ref提示的错误也是相关分支异常导致.   处理 ...

  8. error: cannot lock ref ‘refs/remotes/origin/douyin/open‘: ‘refs/remotes/origin/douyin‘ exists;

    解决方案: git branch -D douyin git gc --prune=now git remote prune origin git pull

  9. 2021-08-03 git pull 报错 cannot lock ref

    git pull 报错:error: cannot lock ref 'refs/remotes/origin/release/xxx': 'refs/remotes/origin/release' ...

最新文章

  1. usaco Stringsobits
  2. 如何在您的笔记本上搭建View 演示环境 -5.配置View Connection Server
  3. python IO多路复用源码
  4. python中的decode(编码)和encode(解码)
  5. TikTok Shop新增三大站点,已开放申请
  6. 人工智能是如何应用于智能交通领域
  7. Tensorfow_yolov3 Intel Realsense D435 图像整合(合并)输入GPU计算耗时测试
  8. 图论--欧拉回路(模板)
  9. 信息学奥赛一本通C++语言——1049:晶晶赴约会
  10. github 搜索_github 项目搜索技巧让你更高效精准地搜索项目
  11. 双层PDF的制作——使用PDF4NET 3.3.6 实现
  12. mysql导出数据库设计说明书
  13. 广义线性模型(GLM)及其应用
  14. HTML网页设计制作 dreamweaver网页源代码 北京故宫旅游景点网站设计
  15. C++之继承详细介绍(你除了继承你爸几亿的资产,你还是个啥??)
  16. 想要进行gene prioritization分析,请看这里!
  17. Trajectory Generation of a Quadrotor Transporting a Bulky Payload in the Cluttered Environments 论文解析
  18. 自然语言处理NLP文本分类顶会论文阅读笔记(二)
  19. Node.js CQRS 幻灯片系统开发实战-曾亮-专题视频课程
  20. 【第二十一讲】参数解析器

热门文章

  1. 数字地 模拟地 电源地 屏蔽地
  2. 为什么 Redis 单线程却能支撑高并发?
  3. html5渐变的两种方式,HTML5的渐变色 渐变的两种类型 createLinearGradient 和createRadialGradient...
  4. 世界上第一台电子数字式计算机诞生于美国,世界上公认的第一台电子数字计算机诞生于哪年哪个国家?...
  5. 怎么关闭vivo系统自检_科技资讯:vivo手机中软件的自启动功能怎么关闭
  6. java将字节转十六进制,Java代码将字节转换为十六进制
  7. 心理测量学信度计算机试题,心理测量学第三章信度.doc
  8. Python使用Pandas读写EXCEL文件教程
  9. 【历史上的今天】2 月 19 日:Hacker News 上线;Adob​​e Photoshop 诞生;DVD 退出历史舞台
  10. colorkey唇釉是否安全_所谓的colorkey真假对比