Share Tags and Releases
Push sends tags to the remote. Tags do not travel with a normal push unless you ask.
Send one tag
The tag arrives on the remote.
$ git push origin v1.0Send the rest
The --tags form sends every tag you have.
$ git push origin --tagsSee the tags on the remote
Each line names a tag and the snapshot it marks.
$ git ls-remote --tags originExample
$ git push origin --tags
$ git ls-remote --tags originKey points
- Push with a tag name sends that tag.
- Push with --tags sends every tag.
- A normal push sends no tags at all.
- The remote list shows the tags it holds.
- Teammates fetch the tags with the snapshots.
- Delete a tag locally with -d. Deleting on the remote is a separate step.
Here, both tags arrive on the remote. The list shows each tag and the snapshot it marks.
Try it Yourself
Edit the code, then press Run.
Running is simulated
Exercise
How do you send every tag?