We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Cat File

Luckily, Git has a built-in plumbing command, cat-file, that allows us to see the contents of a commit without needing to futz around with the object files directly.

git cat-file -p <hash>

Assignment

catfile-command-here > /tmp/catfileout.txt

Run and submit the CLI tests.

Tip

Use git log -1 to get the hash of your last commit.