Push a tag to the remote

Asked

Viewed 52 times

4

I need to push to my remote repository a single tag, v0.0.1.

I know there’s a git push --tags, but this command, as per your documentation, pushes all tags.

What is the command to push a single tag to the remote repository?

1 answer

5


Use, as documented:

git push origin <nome-da-tag>

In git, tags and branches are very similar, both pointers to specific commits. Hence, the syntax for push is the same.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.