{"thread":{"id":"8373","subject":"Breaking up repositories","startedAt":"2007-05-31T06:50:14Z","lastAt":"2007-05-31T13:55:15Z","messageCount":2,"participants":["Jason Sewall","Dave Hanson"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"43677","messageId":"31e9dd080705302350x7752c1f0p3dee2f0d35a97b56@mail.gmail.com","threadId":"8373","inReplyTo":null,"subject":"Breaking up repositories","fromName":"Jason Sewall","fromEmail":"jasonsewall@gmail.com","sentAt":"2007-05-31T06:50:14Z","receivedAt":"2007-05-31T06:50:14Z","isPatch":false,"sender":{"key":"jasonsewall@gmail.com","avatar":null},"body":"I recently imported my subversion repo with git-svn and I'm curious\nwhat the best way to break up the monolithic repo (my many disparate\nprojects from my single svn repo) into individual git repos of their\nown.\n\n I'm still trying to get a grasp on the considerable git toolbox and I\ncan't seem to find the functionality I'm describing, but I'm sure it\nexists - I heard Linus talk about it in that Google talk on git!\n\nThanks,\nJason\n"},{"id":"43686","messageId":"9fb1551c0705310655r234eca96md32ce157b98eff46@mail.gmail.com","threadId":"8373","inReplyTo":"31e9dd080705302350x7752c1f0p3dee2f0d35a97b56@mail.gmail.com","subject":"Re: Breaking up repositories","fromName":"Dave Hanson","fromEmail":"drh@drhanson.net","sentAt":"2007-05-31T13:55:15Z","receivedAt":"2007-05-31T13:55:15Z","isPatch":false,"sender":{"key":"drh@drhanson.net","avatar":"https://gravatar.com/avatar/44adb998476b2890df0b0f252bbbc32635a7022b67a2388a1c894818c6e94345?d=mp&s=160"},"body":"I had similar problem; I split my monolithic repo, monolithic-git, as follows.\n\n1. When I did the git-svn, I ended up with git branches for each\nproject in my svn repo. I think I created these by hand, but I don't\nrecall.\n\n2. To split project foo into its own repo, foo-git, from monolithic-git, I did:\n\nmkdir foo-git\ncd foo-git\ngit init\ngit pull ../monolithic-git foo\n\n>From then on, I worked in foo-git. Eventually, I pitched\nmonolithic-git. I suspect there's a better way to do this...others\nwill surely chime in.\ndave h\n"}]}