查看本地tag
git tag -l
查看遠程tag
git ls-remote --tags origin
新建本地tag
git tag -a '版本號' -m '備注xxxx'
推送本地tag到遠程tag
git push origin '版本號'
推送本地所有tag到遠程
git tag origin --tags
刪除本地tag
git tag -d '版本號'
刪除本地所有tag
git tag -l | xargs git tag -d
刪除遠程tag
git push origin :refs/tags/版本號
刪除遠程所有tag
git show-ref --tag | awk '{print ":" $2}' | xargs git push origin