Skip to content

Instantly share code, notes, and snippets.

@iniyanmurugavel
Created May 12, 2021 11:15
Show Gist options
  • Save iniyanmurugavel/33d4a53986c7385b4666b0f0223ebdde to your computer and use it in GitHub Desktop.
Save iniyanmurugavel/33d4a53986c7385b4666b0f0223ebdde to your computer and use it in GitHub Desktop.
Git Tag
Git Tag
There are two tag
1.Lightweight Tag
2.Annotated Tag
Lightweight Tag is used for requires only a quick and easy tag command
git tag v1.o
To show the tag
git show v1.0
output :-
$ git show v1.0
commit 0659595374f673bdffcc5a9d8b08efb145834132
Author: ChristopherM <[email protected]>
Date: Wed Nov 1 10:13:25 2017 -0400
Menu position adjustment
How to Add an Annotated Tag
In order to add an annotated tag, you will use the same “tag” command.
Here -a option -m command provide mesSAGE FOR THE TAG
git tag -a v1.2 -m "my version 1.2"
git show v1.2
output:
tag v1.2
Tagger: ChristopherM <[email protected]>
Date: Wed Nov 1 16:08:36 2017 -0400
my version 1.2
commit 0659595374f673bdffcc5a9d8b08efb145834132
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment