码迷,mamicode.com
首页 > 其他好文 > 详细

git crate&query&delete tag

时间:2019-12-09 21:40:59      阅读:109      评论:0      收藏:0      [点我收藏+]

标签:project   pre   --   master   mode   bsp   git log   comm   nbsp   

root@vmuer-VirtualBox:/opt/myProject# git log --pretty=oneline
0169b7a1c4bccb47e76711f353fd8d3864bde912 (HEAD -> master) add c.c
da744be647e398abac90d8789edc6d73d6b53fa8 add b.c
7e45181bf8fd527625dd1465b049bca6f7ae84c2 add a.c

 

#crate tag

root@vmuer-VirtualBox:/opt/myProject# git tag tag1.0 7e4518

# query tags

root@vmuer-VirtualBox:/opt/myProject# git tag
tag1.0

root@vmuer-VirtualBox:/opt/myProject# git show tag1.0
commit 7e45181bf8fd527625dd1465b049bca6f7ae84c2 (tag: tag1.0)
Author: panzidong <panzidong>
Date: Mon Dec 9 19:53:56 2019 +0800

add a.c

diff --git a/a.c b/a.c
new file mode 100644
index 0000000..e69de29

# delete tag

root@vmuer-VirtualBox:/opt/myProject# git tag -d tag1.0
Deleted tag ‘tag1.0‘ (was 7e45181)
root@vmuer-VirtualBox:/opt/myProject# git tag

 

git crate&query&delete tag

标签:project   pre   --   master   mode   bsp   git log   comm   nbsp   

原文地址:https://www.cnblogs.com/lianghong881018/p/12013258.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!