Delete a tag in GIT

Normally, after releasing the product for customer, we will create a tag to mark the time and the version which we released. Sometime, you need to delete a tag because something wrong with the tag or just because you want re-tag with same name. In this tutorial, I will guide you all how we can delete a tag in GIT.

Assume, I have a project questions-management on GitHub and this project has tag as below:

Delete a tag in GIT

Now, I will delete this tag.

To do this, first of all we need clone remote repository to your local machine, then using some following commands:

  • Remove this tag on local using command:

Example:

Result:

Delete a tag in GIT

  • Remove this tag on remote repository

Example:

Result:

Delete a tag in GIT

  • Update all tags into remote repository.

Result:

Delete a tag in GIT

After finishing this step, you can check the result:

Delete a tag in GIT

Chia sẽ bài viết này ...Share on Facebook
Facebook
0Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin

Add Comment