天天看点

【GIT】 TAG发布版本

【GIT】 TAG发布版本

#查看本地branch中的tag
git tag -l

#git tag 《标签名》,给当前branch打tag,不推荐使用
git tag xxx_dev_20210325_v1

# 给某个提交节点,打tag,提交节点在idea中找,最近一个git show
git tag xxx_dev_20210325_v1 039bf8b
# 给某个提交节点,打tag,并添加注释
git tag xxx_dev_20210325_v1 -m "add tags information"

#删除本地标签
git tag -d xxx_dev_20210325_v2

#删除远程标签
git push origin -d xxx_dev_20210325_v1

#推送本地所有标签
git push origin --tags

#将本地某个特定标签推送到远程
git push origin xxx_dev_20210325_v1

#查看某一个标签的提交信息
git show xxx_dev_20210325_v1
           

IDEA中TAG快捷发布

【GIT】 TAG发布版本