Process Flow - Pushing tags to remote
Create tag locally
Check local tags
Push tag to remote
Verify tag on remote
Done
This flow shows how a tag is created locally, then pushed to the remote repository, and finally verified on the remote.
git tag v1.0 git push origin v1.0 git ls-remote --tags origin
| Step | Command | Action | Result | Output |
|---|---|---|---|---|
| 1 | git tag v1.0 | Create local tag 'v1.0' | Tag created locally | |
| 2 | git tag | List local tags | Shows 'v1.0' | v1.0 |
| 3 | git push origin v1.0 | Push tag 'v1.0' to remote 'origin' | Tag pushed to remote | To origin * [new tag] v1.0 -> v1.0 |
| 4 | git ls-remote --tags origin | List tags on remote 'origin' | Shows 'refs/tags/v1.0' | abc1234 refs/tags/v1.0 |
| 5 | - | Process complete | Tag 'v1.0' is now on remote | - |
| Variable | Start | After Step 1 | After Step 3 | Final |
|---|---|---|---|---|
| local_tags | [] | [v1.0] | [v1.0] | [v1.0] |
| remote_tags | [] | [] | [] | [v1.0] |
git tag <name> # Create a local tag git push origin <tag> # Push specific tag to remote git ls-remote --tags origin # List tags on remote Tags must be pushed explicitly; creating locally does not send them to remote.