Marquez des versions stables et poussez-les.
objectifs d’apprentissage
- Tags annotés.
- Pousser des tags.
- Lister/montrer.
prérequis
- Commits existants.
- Remote optionnel.
notions clés
- lightweight vs annotated.
- Convention v1.2.3.
- Signature GPG (aperçu).
démonstration guidée
étape 1
Créer et pousser un tag annoté.
git tag -a v0.1.0 -m "release: v0.1.0"
git push origin v0.1.0
étape 2
Lister et inspecter.
git tag --list
git show v0.1.0
exercice
Créez un tag lightweight v0.1.1 et listez-le.
correction
Tag léger.
git tag v0.1.1
git tag -n
quiz éclair
- Quel tag contient un message ?
- a) Annoté
- b) Léger
- c) Aucun