zoukankan      html  css  js  c++  java
  • Git CMD

    命令格式

    git tag [-a | -s | -u <keyid>] [-f] [-m <msg> | -F <file>]
        <tagname> [<commit> | <object>]

    git tag -d <tagname>…​

    git tag [-n[<num>]] -l [--contains <commit>] [--points-at <object>]
        [--column[=<options>] | --no-column] [--create-reflog] [<pattern>…​]

    git tag -v <tagname>…​

    命令参数

    -f, --force
      强制操作。

    -d, --delete
      删除分支。

    实例

    a) 创建标签。

    $ git tag v1.0.1

    b) 创建标签同时标注信息。

    $ git tag -a v1.2.1 -m "Relase Version 1.2.1"

    c) 删除标签。

    $ git tag -d v1.0.1

    d) 推送标签至远程仓库。

    $ git push origin v1.0.1

    e) 推送所有未推送过的标签至远程仓库。

    $ git push origin --tags

    f) 删除远程标签。

    $ git push origin :refs/tags/v1.0.1

    更多

    http://git-scm.com/docs/git-tag

  • 相关阅读:
    iOS
    iOS
    iOS
    iOS
    iOS
    iOS
    iOS
    iOS
    iOS
    【转】idea 用maven骨架生成项目速度慢的问题
  • 原文地址:https://www.cnblogs.com/huey/p/5092213.html
Copyright © 2011-2022 走看看