Git - git tag - 查看當前分支 tag 版本&說明

索引:html

目錄索引git

參看代碼 GitHub:github

git.txtspa

1、示例:code

1 git tag -l -n

2、說明:orm

  1."tag" 部分htm

    tag 表明的是標籤動做,能夠帶參數 ,也能夠不帶參數,blog

    帶上不一樣的參數能夠實現標籤的 新建/刪除/查詢/驗證 等功能.索引

  2."-l" 部分get

    -l 注意是字母"L",以列表形式列出全部tag的版本號.

  3."-n" 部分

    -n 顯示出每一個版本號對應的附加說明.

  4.語法

    git tag [-n[<num>]]

      -l

      [--contains <commit>]

      [--no-contains <commit>]

      [--points-at <object>]

      [--column[=<options>] | --no-column]

      [--create-reflog]

      [--sort=<key>]

      [--format=<format>]

      [--[no-]merged [<commit>]]

      [<pattern>…]

    上面是完整的 tag 查詢語法,其中 -l 是必須項,若是沒有 -l 的話會是徹底不一樣的操做(tag語義就不是查詢動做了),

    其它選項較爲簡單,可自行谷歌~~.

 

 

 

                                         蒙

                                    2018-07-21 23:16 週六

相關文章
相關標籤/搜索