How do you rename a Git tag?

Here is how I rename a tag old to new: git tag new old git tag -d old git push origin new :old The colon in the push command removes the tag from the remote repository. If you don’t do this, Git will create the old tag on your machine when you pull. Finally, make … Read more

How do I delete a remote tag?

You can push an ’empty’ reference to the remote tag name: git push origin :tagname Or, more expressively, use the –delete option (or -d if your git version is older than 1.8.0): git push –delete origin tagname Note that git has tag namespace and branch namespace so you may use the same name for a … Read more

Does “git fetch –tags” include “git fetch”?

Note: starting with git 1.9/2.0 (Q1 2014), git fetch –tags fetches tags in addition to what are fetched by the same command line without the option. To fetch only tags: git fetch <remote> ‘refs/tags/*:refs/tags/*’ In details: See commit c5a84e9 by Michael Haggerty (mhagger): Previously, fetch’s “–tags” option was considered equivalent to specifying the refspec refs/tags/*:refs/tags/* … Read more