get file from branch git command code example Example: checkout file from another branch git checkout master -- myplugin.js