title: Cherry-pick commits to a particular folder of git repo from other repo
body: <p>I am very much familiar with git cherry-pick. Currently i am trying to cherry-pick few commits from other git repository.
  Scenario is as below:</p>
  
  <blockquote>
    <p>A -> git repo ("A/foo/B" where B is a directory inside foo)</p>
    
    <p>B -> git repo</p>
  </blockquote>
  
  <p>My intention is to cherry-pick/apply-patches/merge commits of git repo B to A/foo/B directory.</p>
  
  <blockquote>
    <p>A/foo/B</p>
  </blockquote>
  
  <p>I know it can be done in many ways, like with merge, cherry-pick and applying patch.</p>
  
  <p>I have also tried below command, which is fulfilling my intention:</p>
  
  <pre><code>git --git-dir=../B/.git format-patch --stdout sha1^..sha1 | git am --directory='B/'
  </code></pre>
  
  <p>But is there any way to get the same thing with cherry-pick to get the intended solution Or any other perfect solution to make it up.</p>
  
  <p>Please suggest!!</p>
  
  <p>Thank you :)</p>