I would like to ditch SVN for Git. My current SVN repository setup has projects under trunk (/trunk/projecta
, /trunk/projectb
, etc. with tags and branches at /tags/projecta-1.0
, etc.). I would like to create distinct Git repos for each of these projects by pulling them out of SVN using git-svn.
I've successfully pulled the entire SVN repo down to a local Git repo but all of the projects exist in the same Git repo now. Is it possible to pull them apart at this point?
This is tricky. To get, e.g., the tags for a project, all its tags have to be under a common directory, but your structure has all projects sharing a single tag directory.
Perhaps you could move /tags/projecta-1.0 to /tags/projecta/1.0 and so on, and then import projects into git one at a time:
git-svn init --trunk=trunk/projecta --tags=tags/projecta ...
I don't know if this will work as expected, so please do this on a copy of your repository, not the original!