大版本发布的时候,作标记
git tag #查看标记
git tag -l -n #查看标记以及注释
git tag -a 标签内容 -m '注释' #打标签
git push origin –-tags # 将本地所有标签一次性提交到git服务器
注意:更新线上tag
git fetch
git show v3.0.3 //查看标记的commit_id 和提交的内容
//给commit id 为25656e2的历史版本打标签
git tag v1.0 25656e2
show 标记名称