Using Tags in Git Last Updated : 08 Jun, 2020 Comments Improve Suggest changes Like Article Like Report 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: Make Release point on your code. Create historic restore points. You can create tags when you want to create a release point for a stable version of your code. You can also create tags when you want to create a historic point for your code that you can refer to in the future to restore your data. To create a tag we need to go through the following steps: Step 1: Checkout to the branch you want to create the tag. git checkout {branch name} Step 2: Create a tag with some 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} Step 3: See all the created tags. git tag To see the details of the tag we can use git show {tag name} To see tags starting with some letters git tag -l "v2.*" Step 4: Push tags to remote. git push origin {tag name} git push --tags "git push --tags" will push all tags at once. Before After Step 5: Delete Tags. (locally) 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. Comment More infoAdvertise with us Next Article Using Tags in Git A ayushmankumar7 Follow Improve Article Tags : Git GitHub Similar Reads Git Introduction Git is a powerful and widely used version control system that helps developers track changes in their code, collaborate with others, and manage project history effectively. Whether you are a professional developer or just starting out, understanding Git is important for modern software development. 5 min read Saving a File in Git Git allows you to track changes, collaborate with others, and manage codebase efficiently. One of the fundamental tasks when working with Git is saving files, a process that involves several steps, including adding files to the staging area and committing them to the repository. In this article, we 2 min read What is "origin" in Git? When working with Git, especially in collaboration with others, you will often encounter the term "origin." Understanding what "origin" means and how it functions within Gitâs workflow is important for effective source code management. In this article, we will walk you through everything you need to 4 min read What is Git Init? Git, a widely used version control system, allows developers to track changes in their code and collaborate efficiently. One of the first commands you will encounter when starting with Git is git init. This command is fundamental for creating a new Git repository, setting the stage for version contr 6 min read Git - Working Tree Git is a free and open-source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. Git relies on the basis of distributed development of software where more than one developer may have access to the source code of a specific ap 4 min read Like