[Git] – How to delete a tag from a upstream/remote repository?

Use the following commands.

$git tag -d <TagName>

$git push origin :refs/tags/<TagName>

Following an example.

$git tag -d v3.0.2

$git push origin :refs/tags/v3.0.2

NOTE: It is an example of a tag created/pushed/remove in a fork project cloned locally which has a remote/upstream setup to a repository where the tag v3.0.2 was previously pushed.

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s