pod repo push 的时候遇到这个问题如图

执行pod repo push LBBRollingView /Users/liubo/Desktop/LBRollingView/LBRollingView.podspec --allow-warnings 命令的时候遇到了

Your configuration specifies to merge with the ref 'refs/heads/master'

from the remote, but no such ref was fetched. 报错,如图

后来发现是索引仓库是一个空仓库,没有分支

我们需要引入一个文件到仓库里面,这样就有了分支,注意,因为我们

的索引文件不是直接通过git  push  推送到索引仓库的,所以我们首次 添加文件的时候需要手动

添加一个文件,这样就有了一个默认的分支

如图,创建索引仓库之后需要添加已存在的索引文件

选取文件之后记得要提交哦

添加过索引文件之后,在pod repo push 就成功了

Your configuration specifies to merge with the ref ‘refs/hea相关推荐

  1. Your configuration specifies to merge with the ref ‘refs/heads/develop‘from the remote, but no such

    git pull的时候报错: Your configuration specifies to merge with the ref 'refs/heads/develop' from the remo ...

  2. git提交报configuration specifies to merge with the ref ‘’refs/heads/master‘

    问题 建立新的分支,当咱们执行git pull,出现以下错误git configuration specifies to merge with the ref ''refs/heads/master' ...

  3. 【git】Your configuration specifies to merge with the ref ‘refs/heads/xxx

    执行一下 git status,会发现 On branch xxx Your branch is based on 'origin/yyy', but the upstream is gone. (u ...

  4. git pull 时候报错Your configuration specifies to merge with the ref ‘refs/heads/master‘ from the remote,

    使用vscode 拉代码报错,可以先在创建仓库的时候 点击 初始化readme文件再下拉代码 即可

  5. Your configuration specifies to merge with the ref from the remote, but no such ref was fetched

    Your configuration specifies to merge with the ref from the remote, but no such ref was fetched 今天使用 ...

  6. git 报错:Your configuration specifies to merge with the ref

    由于git分支名字拼写错误,需要将git分支改名 本地仓库改名:git branch -m oldName newName 删除远程分支:git push --delete origin/oldNam ...

  7. git pull 报错Your configuration specifies to merge with the XXX from the remote, but no such ref was..

    翻译过来的大致意思是: 你的配置指定与ref 'XXX'合并 从远程,但没有这样的引用. 打开.git文件夹 打开config文件 [branch "master"]remote ...

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

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

  9. 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 ...

最新文章

  1. php更新用户数据为空,php – Instagram实时更新标签 – 获取空数据,为什么?
  2. sublime 经验总结 主题有 less2css
  3. 浮点数的运算为什么更慢
  4. 使用windows服务更新站点地图
  5. OAuth2.0相关知识
  6. Windows系统MySQL安装配置
  7. 路径问题(如何正确写出文件路径)
  8. Vue中使用el-tag标签实现输入多个字符串实现新增和修改回显(字符数组拼接和拆分)
  9. 2019年4月8日 1021. Remove Outermost Parentheses
  10. TypeScript 的类型推导 Type Inference
  11. Oracle 左连接、右连接、全外连接、(+)号作用
  12. 记一次阿里云服务器CPU长期100%发现被被种挖矿程序解决的过程(一摸一样,只是没查到怎么进来的,入侵)
  13. Netty工作笔记0019---Selector API介绍
  14. WP网站主页备案号存放代码
  15. uinapp下拉刷新,更新列表数据
  16. 十大著名黑客-----埃里克-雷蒙德
  17. 网页怎么显示emoji表情
  18. 零基28岁自学python入坑ing
  19. Win系统上最好用的epub阅读器
  20. js去除url中的localtion.search部分

热门文章

  1. 20190429马士兵
  2. 精品手游小精灵大作战源码 安卓+IOS+H5三端Cocos Creator 客户端 JAVA服务端
  3. 品质超进口的水电优品,都在金标线
  4. java计算机毕业设计小型超市管理系统源码+系统+数据库+lw文档+mybatis+运行部署
  5. 时代产业变迁与时代产业创新:如何重构人与产业的链接
  6. PrimeTime安装过程中出现的一些问题及解决方案
  7. 我的北漂生活| 你好 2021
  8. 不会盲打的程序员和不懂技术的 CTO
  9. 学校电脑室计算机使用流程,学校电脑室安全管理制度
  10. 虚拟机安装centos7及网络配置