iOS 功能代码 上传到 远程 码云私有库

推送代码到远程私有库

创建私有库(注意:仓库名称LYDKit必须和本地仓库对应的名称一样)

复制远程仓库的地址,打开终端,cd到对应的本地库路径下面

>>> cd /Users/cxx/Desktop/Mange_JJH/Lib/TZEIndex

>>> git status  (查看本地代码状态,代码显示有红色,说明代码还没有添加到git 里面)

>>> git add .  (执行 git add . 将代码添加到git,之后执行 git commit -m ‘初始化’ 提交代码到本地仓库)

>>> git commit -m ‘初始化’

>>> git remote add origin 远程私有库地址

>>> git pull origin master (拉取一下代码 (可能根据需要,输入码云的用户名和密码))

>>> git push origin master -f (强制提交代码)

>>> git tag '0.1.0'  (打tag标签)

>>> git push --tags (tag标签 推送到远端)

>>> pod lib lint --private (提交spec至私有索引库)

>>> pod spec lint --private

>>> pod repo push 索引库的本地名称 xx.podspec

 

使用

source 官方索引库url

source 私有索引库url

pod '组件名称'

pod install

 

原文地址:https://www.cnblogs.com/shenlaiyaoshi/p/10607300.html