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

推送代码到远程私有库git

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

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

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

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

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

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

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

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

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

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

相关文章
相关标签/搜索