# Breaking up repositories

2 messages from 2007-05-31 to 2007-05-31. Participants: Jason Sewall, Dave Hanson.
Thread: https://gitlist.dev/t/8373

## Jason Sewall, 2007-05-31 06:50

Subject: Breaking up repositories
Message-ID: <31e9dd080705302350x7752c1f0p3dee2f0d35a97b56@mail.gmail.com>
URL: https://gitlist.dev/e/31e9dd080705302350x7752c1f0p3dee2f0d35a97b56%40mail.gmail.com

```
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, 2007-05-31 13:55

Subject: Re: Breaking up repositories
Message-ID: <9fb1551c0705310655r234eca96md32ce157b98eff46@mail.gmail.com>
URL: https://gitlist.dev/e/9fb1551c0705310655r234eca96md32ce157b98eff46%40mail.gmail.com
In-Reply-To: <31e9dd080705302350x7752c1f0p3dee2f0d35a97b56@mail.gmail.com>

```
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

```
