There are two kinds of tagging in git.
1. Annotated/signed tag
2. LightWeight tag
In lightweight tag, it is just a pointer to a commit, and no extra information. This one is used for temporary purpose.
Annotaged tag, creates a unmodifiable branch of the state of the repo.
To see the list of tags
To create light Weight tag
To check which commit the following tag points to
Reset the current branch to the specific tag
1. Annotated/signed tag
2. LightWeight tag
In lightweight tag, it is just a pointer to a commit, and no extra information. This one is used for temporary purpose.
Annotaged tag, creates a unmodifiable branch of the state of the repo.
To see the list of tags
git tag
To create light Weight tag
git tag <tag_name>eg
git tag version_1.0
To check which commit the following tag points to
git rev-parse version_1.0
Reset the current branch to the specific tag
git reset --hard <tagname>
No comments:
Post a Comment
If you like to say anything (good/bad), Please do not hesitate...