zoukankan      html  css  js  c++  java
  • 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

     

  • 相关阅读:
    [USACO18DEC]Fine Dining
    [USACO18DEC]Cowpatibility(容斥 or bitset优化暴力)
    [P2387魔法森林
    P4172 [WC2006]水管局长
    P2486 [SDOI2011]染色
    P3950部落冲突
    P4332三叉神经树
    莫比乌斯反演习题总结
    牛客 斐波那契数列问题的递归和动态规划3
    牛客 统计和生成所有不同的二叉树
  • 原文地址:https://www.cnblogs.com/shenlaiyaoshi/p/10607300.html
Copyright © 2011-2022 走看看