Sometimes yo need to view the contents of a file in other branch, without doing a checkout. This is super easy with git:
git show branch:file
Where branch can be any ref (branch, tag, HEAD, ...) and file is the full path of the file.
To store the file for a later read:
git show branch:file > exported_file