๐ŸŽ“ A1Learner
๐Ÿ”
0 of 50 lessons completed

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.0

Send the rest

The --tags form sends every tag you have.

$ git push origin --tags

See the tags on the remote

Each line names a tag and the snapshot it marks.

$ git ls-remote --tags origin

Example

$ git push origin --tags
$ git ls-remote --tags origin

Key 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?