Your configuration specifies to merge with the ref ‘refs/hea

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. 报错,如图

Your configuration specifies to merge with the ref ‘refs/hea_第1张图片

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

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

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

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

如图,创建索引仓库之后需要添加已存在的索引文件Your configuration specifies to merge with the ref ‘refs/hea_第2张图片

Your configuration specifies to merge with the ref ‘refs/hea_第3张图片

 

Your configuration specifies to merge with the ref ‘refs/hea_第4张图片

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

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

 

Your configuration specifies to merge with the ref ‘refs/hea_第5张图片

 

 

你可能感兴趣的:(组件化)