how to checkout a file from a different branch in git code example Example: checkout file from another branch git checkout master -- myplugin.js