列出本地标签

1
git tag

新建 tag

1
git tag <tag 名字>

删除本地 tag

1
git tag -d <tag 名字>

推送 tag 到远程分支

1
2
3
git push origin <tag 名字>
or
git push upstream <tag 名字>

删除远程标签

1
2
3
git push origin :refs/tags/标签名
or
git push origin :refs/tags/protobuf-2.5.0rc1