I know there's git cat-file but it takes a sha
what I want to do is something like git cat-file mybranch -- path/to/myfile.txt which would accomplish the same thing as
git checkout mybranch && cat path/to/myfile.txt
except it wouldn't actually checkout the branch. How can I do this?