view version of a file from a certain git branch

Developer from somewhere

For example to view how app/models/user.rb looks on branch name_of_branch:

git show name_of_branch:app/models/user.rb