Useful git tricks

A few git tricks I’ve learned recently that don’t belong in popular tutorials:

git cat-file

This tool cats the file contents from a specified commit hash. Incredibly useful in comparison to git-checkout, cat, git-checkout, etc.