git标签分为两种类型:轻量标签和附注标签。轻量标签是指向提交对象的引用,附注标签则是仓库中的一个独立对象。建议使用附注标签
1.轻量型标签
//创建patch
git tag “v1.0.0第一次更新patch给dx”
//push到服务器
git push origin v1.0.0第一次更新patch给dx
2.附注标签
//创建patch
git tag -a “v1.0.1_update_patch” -m “第一次给鼎信提供从开源以来的所有android_patch”
//push到服务器
git push origin v1.0.1_update_patch
注:名称不能含空格
##其他指令
查看本地tag标签
git tag
删除本地标签
git tag -d v1.0.0第一次更新patch给dingxi
删除远程分支
git push origin :refs/tags/v1.0.0第一次更新patch给dingxin