天天看點

【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釋出版本