Search code examples
gitgit-pushgit-tag

How do you push a tag to a remote repository using Git?


I added a tag to the master branch on my machine:

git tag mytag master

How do I push this to the remote repository? Running git push gives the message:

Everything up-to-date

However, the remote repository does not contain my tag.


Solution

  • To push specific, one tag do following git push origin tag_name