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, which allows us to see the contents of a commit without needing to futz around with the object files directly.

git cat-file -p <commit-hash>

Assignment

  1. git cat-file -p <commit-hash> > /tmp/catfileout.txt
    

Run and submit the CLI tests.

Tip

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