1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-03-28 21:16:20 +01:00
tldr/pages.fr/common/git-rev-parse.md

410 B

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