1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 12:42:07 +02:00
tldr/pages.fr/common/git-rev-parse.md

16 lines
410 B
Markdown

# git rev-parse
> Afficher les métadonnées liées à des révisions spécifiques.
> Plus d'informations : <https://git-scm.com/docs/git-rev-parse>.
- Afficher le hash de commit de la branche courrante :
`git rev-parse {{nom_de_branche}}`
- Affiche le nom de la branche courrante :
`git rev-parse --abbrev-ref {{HEAD}}`
- Obtenir le chamin absolu du repertoire racine :
`git rev-parse --show-toplevel`