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