Getting file from another branch

Quite simple:

$ git checkout $branch $filename

source

View on Github