標(biāo)簽是一個(gè)版本庫(kù)的快照少孝!
首先查看版本庫(kù)的提交歷史瓤荔,目的:查看測(cè)試用的commit id
[root@git git]# git log
commit adce5d4544a1b888189fc55aac413cc0451b4fcf
Author: root <root@bogon.(none)>
Date: Fri Dec 18 13:39:01 2015 -0800
v1
設(shè)置標(biāo)簽
[root@git git]# git tag -m "tag tag tag" v1 adce5d4544
查看所有的標(biāo)簽
[root@git git]# git tag
v1
[root@git git]#
刪除標(biāo)簽
[root@git git]# git tag -d v1
Deleted tag 'v1' (was 2b70072)
[root@git git]# git tag
[root@git git]#