当前位置: 首页 > news >正文

Git 如何管理标签命令(tag)

1.查看本地仓库tag

--1.查看本地仓库tag
User@DESKTOP-2NRT2ST MINGW64 /e/GITROOT/STARiBOSS/STARiBOSS-5GCA (gw_frontend_master)
$ git tag
1stBossUpgrade
V10.0.1_20220224_test
V10.0.1_20220301_test
tag-gw+frontend-V1.0.12-230625
tag-gw_frontend-23.08.29
tag-gw_frontend-23.09.25
tag-gw_frontend-23.10.24
tag-gw_frontend-V1.0.11-230625
tag-gw_frontend-V1.0.15-230725
tag-gw_frontend-V1.0.17-230829
tag-gw_frontend-V1.0.19-230925
tag-gw_frontend-V1.0.20-231024
tag-gw_frontend-V1.0.21
tag-gw_frontend_V1.0.31-240425
test-137-231023
test-138-231023
test-139-231023

2.删除本地仓库tag

--2.删除本地仓库tag
User@DESKTOP-2NRT2ST MINGW64 /e/GITROOT/STARiBOSS/STARiBOSS-5GCA (gw_frontend_master)
$ git tag -d tag-gw_frontend-23.08.29
Deleted tag 'tag-gw_frontend-23.08.29' (was 42980209)

3.删除远程仓库tag

--删除远程仓库tagUser@DESKTOP-2NRT2ST MINGW64 /e/GITROOT/STARiBOSS/STARiBOSS-5GCA (gw_frontend_master)
$ git push origin --delete tag-gw_frontend-23.08.29
To https://gitlab.startimes.me/old-boss-refactor/sms.git- [deleted]           tag-gw_frontend-23.08.29

4.更新本地仓库tag


--更新
User@DESKTOP-2NRT2ST MINGW64 /e/GITROOT/STARiBOSS/STARiBOSS-5GCA (gw_frontend_master)
$ get fetch --tags
bash: get: command not foundUser@DESKTOP-2NRT2ST MINGW64 /e/GITROOT/STARiBOSS/STARiBOSS-5GCA (gw_frontend_master)
$ git pull
Already up to date.-- 查看已经删除
User@DESKTOP-2NRT2ST MINGW64 /e/GITROOT/STARiBOSS/STARiBOSS-5GCA (gw_frontend_master)
$ git tag -l
1stBossUpgrade
V10.0.1_20220224_test
V10.0.1_20220301_test
tag-gw+frontend-V1.0.12-230625
tag-gw_frontend-23.09.25
tag-gw_frontend-23.10.24
tag-gw_frontend-V1.0.11-230625
tag-gw_frontend-V1.0.15-230725
tag-gw_frontend-V1.0.17-230829
tag-gw_frontend-V1.0.19-230925
tag-gw_frontend-V1.0.20-231024
tag-gw_frontend-V1.0.21
tag-gw_frontend_V1.0.31-240425
test-137-231023
test-138-231023
test-139-231023

5.重命名仓库tag

重命名tag实际上是以指定tag创建1条新的tag记录, 然后删除旧tag标签,例如

User@DESKTOP-2NRT2ST MINGW64 /e/GITROOT/STARiBOSS/STARiBOSS-5GCA (gw_frontend_master)
$ git tag
1stBossUpgrade
V10.0.1_20220224_test
V10.0.1_20220301_test
tag-gw+frontend-V1.0.12-230625
tag-gw_frontend-V1.0.11-230625
tag-gw_frontend-V1.0.15-230725
tag-gw_frontend-V1.0.17-230829
tag-gw_frontend-V1.0.19-230925
tag-gw_frontend-V1.0.20-231024
tag-gw_frontend-V1.0.21
tag-gw_frontend_V1.0.31-240425
test-137-231023
test-138-231023
test-139-231023User@DESKTOP-2NRT2ST MINGW64 /e/GITROOT/STARiBOSS/STARiBOSS-5GCA (gw_frontend_master)
$ git tag tag-gw_frontend-V1.0.21-231108 tag-gw_frontend-V1.0.21User@DESKTOP-2NRT2ST MINGW64 /e/GITROOT/STARiBOSS/STARiBOSS-5GCA (gw_frontend_master)
$ git tag -l -n
1stBossUpgrade  备份第一版boss升级内容
V10.0.1_20220224_test 迁移需要缓存的dao
V10.0.1_20220301_test Merge remote-tracking branch 'origin/master'
tag-gw+frontend-V1.0.12-230625 解决JSON转换小写问题
tag-gw_frontend-V1.0.11-230625 解决JSON转换小写问题
tag-gw_frontend-V1.0.15-230725 S15 commit
tag-gw_frontend-V1.0.17-230829 tag:物联网1期+播控平台
tag-gw_frontend-V1.0.19-230925 主应用(GW5G)Sprint 16
tag-gw_frontend-V1.0.20-231024 S20发布标签
tag-gw_frontend-V1.0.21 S21
tag-gw_frontend-V1.0.21-231108 S21
tag-gw_frontend_V1.0.31-240425 Sprint31
test-137-231023 BUILDER:
test-138-231023 BUILDER:
test-139-231023 BUILDER:

6.推送tag到远程仓库

User@DESKTOP-2NRT2ST MINGW64 /e/gitroot/STARIBOSS/STARSMS (liaoning_release)
$ git tag
8.2.3-56-240402
8.2.3-73-240411
8.2.3.31-74-240429User@DESKTOP-2NRT2ST MINGW64 /e/gitroot/STARIBOSS/STARSMS (liaoning_release)
$User@DESKTOP-2NRT2ST MINGW64 /e/gitroot/STARIBOSS/STARSMS (liaoning_release)
$ git push origin 8.2.3.31-74-240429
Total 0 (delta 0), reused 0 (delta 0)
To https://gitlab.startimes.me/gn-boss-main/starsms.git* [new tag]             8.2.3.31-74-240429 -> 8.2.3.31-74-240429


上一篇:IDEA中GIT常用操作


http://www.lryc.cn/news/349028.html

相关文章:

  • 零样本身份保持:ID-Animator引领个性化视频生成技术新前沿
  • 在Go语言中,可以这样使用Json
  • React useEffect Hook: 理解和解决组件双重渲染问题
  • 【C语言】—— 动态内存管理
  • Oracle到PostgreSQL的不停机数据库迁移
  • OpenAI 发布新款大型语言模型 GPT-4o,带大家了解最新ChatGPT动态。
  • 网络编程套接字(一) 【简单的Udp网络程序】
  • 【CANoe】CAPL中生成报告常用的测试函数
  • WEB后端复习——MVC、SSM【含登录页面代码】
  • 灵卡科技HDMI音视频采集及H.264编码一体化采集卡—LCC260
  • 智能自助终端主板RK3288/RK3568在酒店前台自助机方案的应用,支持鸿蒙,支持免费定制
  • Visual Studio环境搭载
  • 添砖Java之路(其八)——继承,final关键字
  • 一篇详解Git版本控制工具
  • 谷歌邮箱2024最新注册教程
  • Spring事务深度解析
  • 机器学习周报第41周
  • gin框架学习笔记(三) ——路由请求与相关参数
  • HTML常用标签-多媒体标签(图片、音频、视频)
  • Flutter 中的 AnimatedIcon 小部件:全面指南
  • 0510Goods的Maven项目
  • 使用Pyramid、Mako和PyJade生成 HTML
  • 什么是Facebook付费广告营销?
  • 面对.halo勒索病毒,如何有效防范与应对?
  • JSON 转为json串后出现 “$ref“
  • Nachi那智不二越机器人维修技术合集
  • C++类与对象基础探秘系列(二)
  • MyBatis-Plus核心功能详解:条件构造器、自定义SQL与Service接口
  • 莆田市C++专项选拔第二轮题4
  • AtCoder Regular Contest 177