threads / discuss / 8373

Breaking up repositories

Subject: Breaking up repositories

## tl;dr

2 messages between May 31, 2007 and May 31, 2007.

replies: 1people: 2as markdown or json

Jason Sewall· May 31, 2007, 06:50 UTC · lore

I recently imported my subversion repo with git-svn and I'm curious what the best way to break up the monolithic repo (my many disparate projects from my single svn repo) into individual git repos of their own.

 I'm still trying to get a grasp on the considerable git toolbox and I
can't seem to find the functionality I'm describing, but I'm sure it
exists - I heard Linus talk about it in that Google talk on git!

Thanks, Jason

Dave Hanson· May 31, 2007, 13:55 UTC · re: Jason Sewall · lore

Re: Breaking up repositories

I had similar problem; I split my monolithic repo, monolithic-git, as follows.
1. When I did the git-svn, I ended up with git branches for each
project in my svn repo. I think I created these by hand, but I don't
recall.
2. To split project foo into its own repo, foo-git, from monolithic-git, I did:

mkdir foo-git cd foo-git git init git pull ../monolithic-git foo

>From then on, I worked in foo-git. Eventually, I pitched

monolithic-git. I suspect there's a better way to do this...others will surely chime in. dave h

← back to recent threads