git 打标签和推送到远程

查看现有的tag:

git tag

新建标签:

git tag -a tag名字 -m '注释' (注释需要用英文单引号引起来)

推送到远程服务器:

git push origin 新建tag的名字

加上 -f 覆盖原有的tag
git tag -f v1.0

猜你喜欢

转载自blog.csdn.net/qq_30264689/article/details/80885751