Git标签管理
#创建一个标签
[root@gitlab ~/demo]#git tag -a "v1.1" -m "first"
[root@gitlab ~/demo]# git tag
v1.1
#查看标签信息
[root@gitlab ~/demo]# git show v1.1
tag v1.1
Tagger: quyunlong <quyunlong@foxmail.com>
Date: Tue Oct 18 16:06:36 2022 +0800
first
commit 0b513f7c750039c4d6476a315847c693824e43dd
Merge: ecb5bc0 abbc0aa
Author: quyunlong <quyunlong@foxmail.com>
Date: Tue Oct 18 13:15:25 2022 +0800
dsdsd
diff --cc file4
index cff06d6,ebf2d57..6aa9734
--- a/file4
+++ b/file4
@@@ -1,3 -1,3 +1,6 @@@
+qwe
+qwe
+qwe
+ hello
+ world
+ yeyeye
查看历史记录
#将上图历史记录中红框打一个标签
[root@gitlab ~/demo]# git tag -a "v0.1" 3712640 -m "里程碑--"
[root@gitlab ~/demo]# git tag
v0.1
v1.1
查看标签中对应信息