tldr/pages.fr/common/git-describe.md

25 lines
662 B
Markdown
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# git describe
> Créer un nom unique et lisible pour un objet à partir dune référence disponible.
> Plus d'informations : <https://git-scm.com/docs/git-describe>.
- Créer un nom unique pour le commit courant (le nom contient le tag le plus recent, le nombre de commits additionnel, and le hash abrégé du commit) :
`git describe`
- Créer un nom avec un hash de commit de 4 carctéres :
`git describe --abbrev={{4}}`
- Générer un nom avec le chemin complet du tag :
`git describe --all`
- Décrire un tag Git :
`git describe {{v1.0.0}}`
- Créer un nom pour le dernier commit d'une branche donnée :
`git describe {{nom_de_branche}}`