Git pushes and deletes remote tags

Source: Internet
Author: User

In fact, the GIT push and delete remote tag commands are the same. The delete operation is actually to push the empty source tag refs:
Git push origin Tag Name
Equivalent
Git push origin refs/tags/source Tag Name: refs/tags/destination Tag Name

The GIT push document has an explanation:

Tag <tag> means the same as refs/tags/<tag>: refs/tags/<tag>.
Pushing an empty <SRC> allows you to delete the <DST> ref from the remote repository.

Push Tag:

 
Git push origin Tag Name

Delete local tags:

 
Git tag-D tag name

Delete remote tags:

 
Git push origin: refs/tags/Tag Name git push origin: refs/tags/protobuf-2.5.0rc1

Other local operations:

# Tag git tag-A v1.1.4-M "tagging version 1.1.4" # Delete the local repository tag git tag-D v1.1.4 # list the tag git tag

Reference:
Http://nathanhoad.net/how-to-delete-a-remote-git-tag
Http://linux.die.net/man/1/git-push

Transferred from:
Http://ihacklog.com/post/how-to-push-and-delete-a-remote-git-tag.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.