git tag操作

2019-10-17  本文已影响0人  背锅填坑交给我

亲测

## 打tag
git tag -a xxx-v1.0 -m 'version 1.0’

## tag推到远程仓库
git push origin xxx-0.1    push指定tag 
git push origin --tags   push所有tag

## 获取远程tag
git fetch origin tag V1.2


## 删除远程tag
1、先删除本地tag
git tag -d ccb-streaming-plugin-v0.1.0.0
2、再推送到远程tag
git push origin :refs/tags/ccb-streaming-plugin-v0.1.0.0

上一篇 下一篇

猜你喜欢

热点阅读