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:
A -> git repo ("A/foo/B" where B is a directory inside foo)
B -> git repo
My intention is to cherry-pick/apply-patches/merge commits of git repo B to A/foo/B directory.
A/foo/B
I know it can be done in many ways, like with merge, cherry-pick and applying patch.
I have also tried below command, which is fulfilling my intention:
git --git-dir=../B/.git format-patch --stdout sha1^..sha1 | git am --directory='B/'
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.
Please suggest!!
Thank you :)