Using Tags in Git
Last Updated :
08 Jun, 2020
Improve
Tagging in GIT refers to creating specific points in the history of your repository/data. It is usually done to mark the release points.
Two main purposes of tags are:
Step 2: Create a tag with some name
Step 3: See all the created tags.
Step 4: Push tags to remote.
After
Step 5: Delete Tags. (locally)
- Make Release point on your code.
- Create historic restore points.
git checkout {branch name}

git tag {tag name}There are many more ways in which we create tags. Annotated Tags
git tag -a {tag name} -m {some message}

git tagTo see the details of the tag we can use
git show {tag name}To see tags starting with some letters
git tag -l "v2.*"

git push origin {tag name} git push --tags"git push --tags" will push all tags at once. Before


git tag -d {tag name} git tag --delete {tag name}Step 6: Delete tags from remote
git push origin -d {tag name} git push origin --delete {tag name} git push origin :{tag name}"git push origin -d {tag name}" can also delete tag locally and remote at the same time.
