当前位置:网站首页>传智教育 | 项目发布前如何打tag标签及标签命名规范
传智教育 | 项目发布前如何打tag标签及标签命名规范
2022-06-23 06:36:00 【传智教育】
项目发布前如何打tag标签及标签命名规范
1.标签命名约定
不同的软件公司对git标签的命名规则有不同的约定,整体来看 git标签的命名规则大致与软件的发布版本号一致,格式如下:
以V4.2.4标签名称为例说明:
说明:
(1)主版本号:主版本号一般从0或者1开始,一般当项目进行重大修改,则版本号加1;
(2)次版本号:次版本号是相对于主版本号而言,一般对应的是主版本下局部的调整;
(3)修订版本号:一般是Bug的修复或者细小的变动而发布的一个版本;
2.动手实践
下面我们基于idea工具和git命令两种方式开始动手实践。
2.1 使用idea工具实操
1)当前分支下打标签
为当前master分支打标签:

在当前提交head中可看到标签信息:

2)为历史提交记录打标签
有时候针对一些重要阶段漏打tag,此时我们可为历史提交节点打tag:

2.2 使用git命令实操
1)为当前master分支head添加标签

查看标签信息:

2)为历史提交记录打标签

打标签:
效果:
边栏推荐
- Arthas-thread命令定位线程死锁
- Unet代码实现
- 正则表达式图文超详细总结不用死记硬背(上篇)
- Data types in tensorflow
- Regular expression graph and text ultra detailed summary without rote memorization (Part 1)
- Project_ Filter to solve Chinese garbled code
- 295. median data flow
- 406 double pointer (27. remove elements, 977. square of ordered array, 15. sum of three numbers, 18. sum of four numbers)
- MySQL (V) - locks and transactions
- 如何优雅的快速下载谷歌云盘的大文件 (二)
猜你喜欢

Analyzing the creation principle in maker Education

Principle of skip table

MYSQL牛客刷题

微信多人聊天及轮盘小游戏(websocket实现)

MySQL (VIII) - explain

SSTable详解

GloRe
![[system] right click the desktop icon. After turning around, the Explorer will crash and the desktop will be refreshed](/img/aa/0189beb065fa0d4b625390793cb79b.png)
[system] right click the desktop icon. After turning around, the Explorer will crash and the desktop will be refreshed

deeplab v3 代码结构图

Mysql(十一) — MySQL面试题整理
随机推荐
Don't look for [12 super easy-to-use Google plug-ins are here] (are you sure you want to take a look?)
295. median data flow
Database principle experiment test questions, about book classification table
SSM整合
In depth learning series 46: face image super score gfp-gan
312. poke the balloon
[AI practice] xgb Xgbregression multioutputregressor parameter 2 (GPU training model)
Nacos适配oracle11g-建表ddl语句
Mysql事务隔离级别
322. change exchange
899. ordered queue
How flannel works
深度学习系列47:styleGAN总结
Redis设置密码
SSM integration
Initialization layer implementation
【***数组***】
paddle版本问题
深度学习系列47:超分模型Real-ESRGAN
Data types in tensorflow