git checkout file from branch to new filename code example Example: checkout file from another branch git checkout master -- myplugin.js