Forrest logo
back to context overview

git-cat-file

List of commands for git-cat-file:

  • git-cat-file:tldr:1df69 git-cat-file: Pretty-[p]rint the contents of a given Git object based on its type.
    $ git cat-file -p ${HEAD~2}
    try on your machine
    explain this command
  • git-cat-file:tldr:a86e2 git-cat-file: Get the [s]ize of the HEAD commit in bytes.
    $ git cat-file -s HEAD
    try on your machine
    explain this command
  • git-cat-file:tldr:c0508 git-cat-file: Get the [t]ype (blob, tree, commit, tag) of a given Git object.
    $ git cat-file -t ${8c442dc3}
    try on your machine
    explain this command
back to context overview