组件化经常用到的指令

2019-07-30  本文已影响0人  _牧歌

0.添加远程索引库到本地
pod repo add CCSpecs https://....git
1.创建lib库
pod lib create XXX
2.关联本地库到远程库
git remote add origin https://….git
3.添加修改到本地
git add .
4.提交修改到本地管理
git commit -m “初次提交”
5.上传本地库到远程库
git push origin master
6.本地打标签
打标签:git tag 0.1.0
移除本地标签 : git tag -d 0.1.0
7远程库打标签
打标签:git push —tags
移除远程标签 git push origin :refs/tags/0.1.0
8.本地库验证(sources有用到私有库才需要)
pod repo lib lint XXX.podspec --allow-warnings -- sources='https://....git,https://github.com/CocoaPods/Specs.git'
9.远程验证
pod spec lint XXX.podspec --allow-warnings --sources='https://....git,https://github.com/CocoaPods/Specs.git'
10.上传本地索引到索引库
pod repo push CCSpecs XXX.podspec --allow-warnings

远程私有库方案.png
上一篇下一篇

猜你喜欢

热点阅读