git checkout file version from different branch code example Example: checkout file from another branch git checkout master -- myplugin.js