git branch file path code example
Example 1: checkout file from another branch
git checkout master -- myplugin.js
Example 2: copy files from another branch git
$ git checkout master
git checkout master -- myplugin.js
$ git checkout master