I\'ve found how you can copy a file wholesale from one branch to another:
Edit please note, if you think this question is a duplicate
you could use git show and then redirect... it's not very elegant, though
git show feature-B:directory/somefile.php > directory/somefile.php