Just run git show branch:file. Examples:
git show branch:file
git show HEAD~:bin/command git show origin/master:../lib/version.rb