zoukankan      html  css  js  c++  java
  • github发布版本

    github发布版本后再pacakgist能拉取到需要发布版本

    本地 

    mac@macdeMacBook-Pro:/www/tool$     git add .
    mac@macdeMacBook-Pro:/www/tool$     git commit -m 'test'
    [master dc1bf10] test
     6 files changed, 29 insertions(+), 8 deletions(-)
     mode change 100644 => 100755 .gitignore
     mode change 100644 => 100755 composer.json
     mode change 100644 => 100755 index.php
     rename src/{Db => }/DB.php (89%)
     mode change 100644 => 100755
     mode change 100644 => 100755 src/Redis.php
     mode change 100644 => 100755 test.php
    mac@macdeMacBook-Pro:/www/tool$     git push origin master
    Counting objects: 7, done.
    Delta compression using up to 8 threads.
    Compressing objects: 100% (7/7), done.
    Writing objects: 100% (7/7), 959 bytes | 959.00 KiB/s, done.
    Total 7 (delta 1), reused 0 (delta 0)
    remote: Resolving deltas: 100% (1/1), completed with 1 local object.
    To github.com:brady-wang/tool.git
       16cd720..dc1bf10  master -> master
    mac@macdeMacBook-Pro:/www/tool$     git tag -a v1.5 -m '发布我的第五个版本'
    mac@macdeMacBook-Pro:/www/tool$     git push origin v1.5
    Counting objects: 1, done.
    Writing objects: 100% (1/1), 186 bytes | 186.00 KiB/s, done.
    Total 1 (delta 0), reused 0 (delta 0)
    To github.com:brady-wang/tool.git
     * [new tag]         v1.5 -> v1.5
    mac@macdeMacBook-Pro:/www/tool$    
    

    进入github项目里面

    reases 点击

    点击tags

    点击要发布的对应的tag最右边 选择 create rease

    点击发布

    # 创建附注标签
    $ git tag -a v0.1.2 -m “0.1.2版本”


    列出标签

    $ git tag # 在控制台打印出当前仓库的所有标签
    $ git tag -l ‘v0.1.*’ # 搜索符合模式的标签


    git push并不会把tag标签传送到远端服务器上,只有通过显式命令才能分享标签到远端仓库。
    1.push单个tag,命令格式为:git push origin [tagname]
    例如:
    git push origin v1.0 #将本地v1.0的tag推送到远端服务器
    2.push所有tag,命令格式为:git push [origin] --tags
    例如:
    git push --tags

    git push origin --tags

  • 相关阅读:
    敏捷不是XP(口水文)
    利用异或的特性解决,找出重复数的问题,应该是目前最优算法。
    开源和免费那些事儿(二)
    开源和免费那些事儿
    LINQ本质 外篇 JOIN补遗
    在北京求.NET开发职位,人已经到达北京
    软件是邪恶的
    最近遇到的两个面试题兼卖身广告
    谈谈信仰和银弹。
    继续高阶函数好玩有用的扩展(网吧行文)
  • 原文地址:https://www.cnblogs.com/brady-wang/p/11626433.html
Copyright © 2011-2022 走看看