From: Andrew Wong Date: Fri, 14 Mar 2014 19:18:47 GMT Subject: Re: Apply commits from one branch to another branch (tree structure is different) Message-ID: In-Reply-To: On Fri, Mar 14, 2014 at 1:39 PM, Jagan Teki wrote: > Suppose developer send 10 patches on branch1 where are changes in terms > of _/ then I need to apply on my local repo branch1, till now > is fine then I need to apply same 10 patches on to my branch2 where source > tree which is quite question here how can I do. You might be able to use the subtree option in recursive merge. Try something like: git cherry-pick -X subtree=foo This tells git to apply the changes to the "foo" directory in your current branch (branch2).