How to push git tags

git push does not push tags by default. You need to explicitly specify a tag name to push like it was a branch:

git tag -a TAG_NAME -m "Optional tag message"
git push origin TAG_NAME

Pushing all tags (may cause a mess):

git push --dry-run --tags origin

Preview tags push with dry run:

git push --dry-run --tags origin

References:


git

Somewhat related: