索引:
參看代碼 GitHub:
一、示例:
1 git tag -l -n
二、說明:
1."tag" 部分
tag 代表的是標簽動作,可以帶參數 ,也可以不帶參數,
帶上不同的參數可以實現標簽的 新建/刪除/查詢/驗證 等功能.
2."-l" 部分
-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 周六