tldr/pages.tr/common/git-cat-file.md

17 lines
442 B
Markdown
Raw Blame History

This file contains ambiguous Unicode 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 cat-file
> Git depo cisimlerine dair içerik, tür ve boyut bilgisini sağla.
> Daha fazla bilgi için: <https://git-scm.com/docs/git-cat-file>.
- HEAD commit'inin byte bazında boyutunu öğren:
`git cat-file -s HEAD`
- Belirtilen Git cisminin türünü (blob, ağaç, commit, etiket) öğren:
`git cat-file -t {{8c442dc3}}`
- Git objesinin içeriğini, türüne uygun olarak hoş şekilde yansıt:
`git cat-file -p {{HEAD~2}}`