一般給生產環境的代碼新包進行打標簽,以便查找,發布正式環境的各個不同版本作用,簡單來說,就是給包命名,容易區分太多版本啦
獲取系統中的所有標簽或篩選特定特征的標簽
git tag -a tagname -m '提交信息'
git show tagname
git tag tagname 輕量標簽
git tag -a tagname version -m ‘備注’補錄標簽
git tag -d tagname 刪除標簽
git tag 顯示所有標簽
git tag -l 'v1.8*'