{"thread":{"id":"22874","subject":"split up a repository","startedAt":"2010-03-02T00:12:26Z","lastAt":"2010-03-03T19:19:12Z","messageCount":8,"participants":["Kovacs, Levente","Chris Packham","Sverre Rabbelier","Levente Kovacs","Avery Pennarun","Bill Lear"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"135993","messageId":"20100302011226.76fda85d@gmail.com","threadId":"22874","inReplyTo":null,"subject":"split up a repository","fromName":"Kovacs, Levente","fromEmail":"leventelist@gmail.com","sentAt":"2010-03-02T00:12:26Z","receivedAt":"2010-03-02T00:12:26Z","isPatch":false,"sender":{"key":"leventelist@gmail.com","avatar":null},"body":"Hi all,\n\n\nOk, I *WAS* an SVN user, so forgive my ignorance. I have successfully\nmigrated from SVN to git. However, I had only one repository under my\nSVN server, which is not a good approach with git.\n\nhttp://logonex.eu/git/?p=svn.git;a=summary\n\nNow I have one git repository, which I'd like to split up to several others. Does it possible with git? If it is, how?\n\nHow can I split up a single repo to several others? It would be nice to\nkeep the history.\n\nThank you for your help in advance.\n\nLevente\n"},{"id":"135994","messageId":"a038bef51003011636n6dda8296k655b9d367cee9e91@mail.gmail.com","threadId":"22874","inReplyTo":"20100302011226.76fda85d@gmail.com","subject":"Re: split up a repository","fromName":"Chris Packham","fromEmail":"judge.packham@gmail.com","sentAt":"2010-03-02T00:36:07Z","receivedAt":"2010-03-02T00:36:07Z","isPatch":false,"sender":{"key":"judge.packham@gmail.com","avatar":"https://avatars.githubusercontent.com/u/155667?v=4"},"body":"Hi,\n\nOn Mon, Mar 1, 2010 at 4:12 PM, Kovacs, Levente <leventelist@gmail.com> wrote:\n> Hi all,\n>\n>\n> Ok, I *WAS* an SVN user, so forgive my ignorance. I have successfully\n> migrated from SVN to git. However, I had only one repository under my\n> SVN server, which is not a good approach with git.\n>\n> http://logonex.eu/git/?p=svn.git;a=summary\n>\n> Now I have one git repository, which I'd like to split up to several others. Does it possible with git? If it is, how?\n>\n> How can I split up a single repo to several others? It would be nice to\n> keep the history.\n>\n> Thank you for your help in advance.\n>\n> Levente\n> --\n\n'git filter-branch' should do what you need. Have a read of this [1]\nrecent discussion and the docs for filter-branch [2].\n\n[1] http://thread.gmane.org/gmane.comp.version-control.git/138382\n[2] http://www.kernel.org/pub/software/scm/git/docs/v1.7.0.1/git-filter-branch.html\n"},{"id":"136003","messageId":"fabb9a1e1003020240h81f3e99wea1185c080a03b0@mail.gmail.com","threadId":"22874","inReplyTo":"20100302011226.76fda85d@gmail.com","subject":"Re: split up a repository","fromName":"Sverre Rabbelier","fromEmail":"srabbelier@gmail.com","sentAt":"2010-03-02T10:40:41Z","receivedAt":"2010-03-02T10:40:41Z","isPatch":false,"sender":{"key":"srabbelier@gmail.com","avatar":"https://avatars.githubusercontent.com/u/3098?v=4"},"body":"Heya,\n\nOn Tue, Mar 2, 2010 at 01:12, Kovacs, Levente <leventelist@gmail.com> wrote:\n> How can I split up a single repo to several others? It would be nice to\n> keep the history.\n\nSounds like a job for.... subtree man! Avery (cc-ed) has written a\nprogram 'git subtree' that lets you split off subtrees from a git\nrepository (and optionally merge them back later on). I reckon that's\nwhat you want, yes?\n\n-- \nCheers,\n\nSverre Rabbelier\n"},{"id":"136047","messageId":"fabb9a1e1003021519y7159a3dal3aa3a7514329fb9a@mail.gmail.com","threadId":"22874","inReplyTo":"20100303002132.5df20326@gmail.com","subject":"Re: split up a repository","fromName":"Sverre Rabbelier","fromEmail":"srabbelier@gmail.com","sentAt":"2010-03-02T23:19:48Z","receivedAt":"2010-03-02T23:19:48Z","isPatch":false,"sender":{"key":"srabbelier@gmail.com","avatar":"https://avatars.githubusercontent.com/u/3098?v=4"},"body":"Heya,\n\nOn Wed, Mar 3, 2010 at 00:21, Levente Kovacs <leventelist@gmail.com> wrote:\n> Ok. Really newbie question here. Just before I start to mess up my\n> repositories.\n\nPROTIP: Back up your repository before messing with it ;).\n\n> I've cloned the git-subtree, and the install script would put\n> the script into /usr/lib/git-core. Is there any way to install the script\n> somewhere under /usr/local ?\n\nI'll leave git subtree specific questions to Avery :).\n\n-- \nCheers,\n\nSverre Rabbelier\n"},{"id":"136046","messageId":"20100303002132.5df20326@gmail.com","threadId":"22874","inReplyTo":"fabb9a1e1003020240h81f3e99wea1185c080a03b0@mail.gmail.com","subject":"Re: split up a repository","fromName":"Levente Kovacs","fromEmail":"leventelist@gmail.com","sentAt":"2010-03-02T23:21:32Z","receivedAt":"2010-03-02T23:21:32Z","isPatch":false,"sender":{"key":"leventelist@gmail.com","avatar":null},"body":"On Tue, 2 Mar 2010 11:40:41 +0100\nSverre Rabbelier <srabbelier@gmail.com> wrote:\n\n> Sounds like a job for.... subtree man!\n\nYes, it seems!\n\nOk. Really newbie question here. Just before I start to mess up my\nrepositories. I've cloned the git-subtree, and the install script would put\nthe script into /usr/lib/git-core. Is there any way to install the script\nsomewhere under /usr/local ?\n\nThanks,\n\n-- \nLevente Kovacs\nhttp://logonex.eu\n\n-- \nLevente Kovacs\nhttp://logonex.eu\n"},{"id":"136054","messageId":"32541b131003021740n32535fbbh802af418ea0898aa@mail.gmail.com","threadId":"22874","inReplyTo":"20100303002132.5df20326@gmail.com","subject":"Re: split up a repository","fromName":"Avery Pennarun","fromEmail":"apenwarr@gmail.com","sentAt":"2010-03-03T01:40:57Z","receivedAt":"2010-03-03T01:40:57Z","isPatch":false,"sender":{"key":"apenwarr@gmail.com","avatar":"https://avatars.githubusercontent.com/u/20592?v=4"},"body":"On Tue, Mar 2, 2010 at 6:21 PM, Levente Kovacs <leventelist@gmail.com> wrote:\n> On Tue, 2 Mar 2010 11:40:41 +0100\n> Ok. Really newbie question here. Just before I start to mess up my\n> repositories. I've cloned the git-subtree, and the install script would put\n> the script into /usr/lib/git-core. Is there any way to install the script\n> somewhere under /usr/local ?\n\nThe actual function of git-subtree is one single file.  You can just\ncopy it to wherever you like.  Personally, I add the git-subtree\nsource directory to my PATH from .bashrc... but I guess I'm special\nbecause I also change my version of git-subtree a lot :)\n\nMake sure to run 'make test' first so you know it's working on your computer.\n\nAnd I'll second Sverre's suggestion to *always* back up your\nrepository before doing weird stuff (although git-subtree is designed\nto refuse to overwrite existing branches, and nobody has ever reported\nit damaging anything).\n\nHave fun,\n\nAvery\n"},{"id":"136077","messageId":"19342.27760.544227.835077@blake.zopyra.com","threadId":"22874","inReplyTo":"32541b131003021740n32535fbbh802af418ea0898aa@mail.gmail.com","subject":"Re: split up a repository","fromName":"Bill Lear","fromEmail":"rael@zopyra.com","sentAt":"2010-03-03T14:04:32Z","receivedAt":"2010-03-03T14:04:32Z","isPatch":false,"sender":{"key":"rael@zopyra.com","avatar":"https://gravatar.com/avatar/c4f2d2790ca3828d3b4e7dfebabf61d2fe94fd82fa49cdac2a5295dd2d46a874?d=mp&s=160"},"body":"On Tuesday, March 2, 2010 at 20:40:57 (-0500) Avery Pennarun writes:\n>On Tue, Mar 2, 2010 at 6:21 PM, Levente Kovacs <leventelist@gmail.com> wrote:\n>> On Tue, 2 Mar 2010 11:40:41 +0100\n>> Ok. Really newbie question here. Just before I start to mess up my\n>> repositories. I've cloned the git-subtree, and the install script would put\n>> the script into /usr/lib/git-core. Is there any way to install the script\n>> somewhere under /usr/local ?\n>\n>The actual function of git-subtree is one single file....\n\nDoes git-subtree support branching of the \"main\" repository and\nsub-trees in coordinated (one step) fashion?\n\n\nBill\n"},{"id":"136085","messageId":"32541b131003031119i5f7baefelc2784ccca90eca41@mail.gmail.com","threadId":"22874","inReplyTo":"19342.27760.544227.835077@blake.zopyra.com","subject":"Re: split up a repository","fromName":"Avery Pennarun","fromEmail":"apenwarr@gmail.com","sentAt":"2010-03-03T19:19:12Z","receivedAt":"2010-03-03T19:19:12Z","isPatch":false,"sender":{"key":"apenwarr@gmail.com","avatar":"https://avatars.githubusercontent.com/u/20592?v=4"},"body":"On Wed, Mar 3, 2010 at 9:04 AM, Bill Lear <rael@zopyra.com> wrote:\n> Does git-subtree support branching of the \"main\" repository and\n> sub-trees in coordinated (one step) fashion?\n\nYes.\n\nAvery\n"}]}