1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-23 18:35:26 +02:00
tldr/pages.fr/common/git-rev-parse.md
2020-11-10 08:17:06 -03:00

16 lines
409 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`