checkout file from another branch

Shell
git checkout master -- myplugin.js
Source

Also in Shell: