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

  • 相关阅读:
    【一天一个canvas】制作渐变式PPT背景(十五)
    【一天一个canvas】写文字(十四)
    【一天一个canvas】图像切割函数clip(十三)
    ThinkPHP 3.2 大写字母函数封装方法实例
    百度echarts 地图使用实例
    随机数生成
    需要修改php.ini文件支持操作,可不用直接操作php.ini
    定时多少时间调用指定URL
    自动调用接口
    tp5 Excel 批量导入
  • 原文地址:https://www.cnblogs.com/brady-wang/p/11626433.html
Copyright © 2011-2022 走看看