login
Header Space

 
 

Split a subversion repo into several git repos

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Date: Thursday, October 11, 2007 - 8:51 am

Hi,
I would like to convert a subversion repository to Git. The subversion  
repository used to track development of several projects (only slightly  
related), and I would like to divide the repository into several smaller  
git repositories.

For example, I want to convert one subversion repository which contains  
the folders:
trunk/projectA
trunk/projectB

into two git repositories:
projectA.git
projectB.git

As far as I have understood, the way to do this is to
1) Convert the entire subversion repository to git with git-svn.
2) Make two copies of the whole new git-repository (projectA.git and  
projectB.git).
3) Use git-rm to remove projectB from projectA.git, and projectA from  
projectB.git.

This works fine, but both git-repositories now carries the history for  
both projects. If possible, I would like to "clean" the history in the  
repositories, so that I don't see history information for projectA when I  
am browsing logs in projectB.git. Has anyone been in the same situation?  
Do you have suggestions on how it can be solved?

Any help will be greatly appreciated.

Thanks,
Eivind
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Split a subversion repo into several git repos, Eivind LM, (Thu Oct 11, 8:51 am)
Re: Split a subversion repo into several git repos, Jonathan del Strother, (Thu Oct 11, 9:46 am)
Re: Split a subversion repo into several git repos, Sam Vilain, (Thu Oct 11, 5:40 pm)
Re: Split a subversion repo into several git repos, Eivind LM, (Fri Oct 12, 10:14 am)
Re: Split a subversion repo into several git repos, Sam Vilain, (Fri Oct 12, 4:27 pm)
Re: Split a subversion repo into several git repos, Jonathan del Strother, (Fri Oct 12, 10:23 am)
Re: Split a subversion repo into several git repos, Eivind LM, (Fri Oct 12, 10:47 am)
Re: Split a subversion repo into several git repos, Patrick Doyle, (Thu Oct 11, 10:02 am)
Re: Split a subversion repo into several git repos, Patrick Doyle, (Thu Oct 11, 9:24 am)
Re: Split a subversion repo into several git repos, Eivind LM, (Fri Oct 12, 10:15 am)
speck-geostationary