Files
tldr/pages.fr/common/git-cat-file.md
2021-06-22 20:34:03 -04:00

17 lines
455 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# git cat-file
> Fournir des informations sur le contenu ou le type et la taille des objets du dépôt Git.
> Plus d'informations : <https://git-scm.com/docs/git-cat-file>.
- Obtenir la taille [s] du commit HEAD en octets :
`git cat-file -s HEAD`
- Obtenir le type [t] (blob, tree, commit, tag) d'un objet Git spécifié :
`git cat-file -t {{8c442dc3}}`
- Affiche le contenu [p] d'un objet Git basé sur son type :
`git cat-file -p {{HEAD~2}}`