git tag

../../_images/branching_and_merging.png

Git branching and merging

git tag [ mon-tag ] <[commit]>

Source :

Froggit tutorial par Christophe Chaudier

git tag [mon-tag] <[commit]>

étiquette le commit , ou par défaut le dernier commit, avec le tag.

Ce tag est souvent un numéro de version et peut servir à faire des releases. Pour standardiser tes numéros de version, regarde du côté du versionnage sémantique .

Manage tags

To list all available tags:

git tag

Example 1

To create a new tag:

git tag -a v1.0 -m "Version 1.0"

Send the tag to the remote repository:

git push origin v1.0

Example 2

To create a new tag:

git tag -a 0.7.7 -m "Version 0.7.7 (2019-09-26)"

Send the tag to the remote repository:

git push origin 0.7.7