{"thread":{"id":"21809","subject":"Re: Transplant branch from another repository","startedAt":"2009-12-01T16:53:41Z","lastAt":"2009-12-17T11:06:23Z","messageCount":2,"participants":["Dale Farnsworth","Jeenu V"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"128901","messageId":"E1NFVyv-0000EN-Qx@xyzzy.farnsworth.org","threadId":"21809","inReplyTo":"hf2t2i$l2b$1@xyzzy.farnsworth.org","subject":"Re: Transplant branch from another repository","fromName":"Dale Farnsworth","fromEmail":"dale@farnsworth.org","sentAt":"2009-12-01T16:53:41Z","receivedAt":"2009-12-01T16:53:41Z","isPatch":false,"sender":{"key":"dale@farnsworth.org","avatar":null},"body":"> Say, I have two repositories A and B (local, independent, but similar\n> - they are for content tracking and not collaboration purposes). A has\n> a branch 'a', which I want to have in B. What I mean is that I'd like\n> to have the sequence of changes in the branch 'a' to be present in B,\n> thus creating an independent branch 'b' in B.\n> \n> Is there any way to achieve this? One thing that I could think of is\n> to use 'format-patch' to generate the list of patch files from A. But\n> I don't see how to convert those patches to a sequence of commits in\n> repo B. I could do a 'git apply patches/*' but then all patches\n> collapse to one single commit. If format-patch is a/the way, could\n> somebody tell me how to get this done? Or are there any alternatives?\n> \n> FWIW: I'm running Git under Cygwin, and sendmail isn't configured.\n\nTry \"cd B; git fetch A a:b\"\n\n-Dale\n\n\nDale Farnsworth\n"},{"id":"130026","messageId":"5195c8760912170306p28b182adrcd1990b9ec6fa2bc@mail.gmail.com","threadId":"21809","inReplyTo":"E1NFVyv-0000EN-Qx@xyzzy.farnsworth.org","subject":"Re: Transplant branch from another repository","fromName":"Jeenu V","fromEmail":"jeenuv@gmail.com","sentAt":"2009-12-17T11:06:23Z","receivedAt":"2009-12-17T11:06:23Z","isPatch":false,"sender":{"key":"jeenuv@gmail.com","avatar":"https://gravatar.com/avatar/0fae51e727209ba442f53fbab775dec62add0884f7a1bf1eb9fee94fb876f2b0?d=mp&s=160"},"body":"On Tue, Dec 1, 2009 at 10:23 PM, Dale Farnsworth <dale@farnsworth.org> wrote:\n> [...]\n> Try \"cd B; git fetch A a:b\"\n\nThanks.\n-- \n:J\n"}]}