I am trying to convert a slightly messy svn repository to git. I tried reading some guides and other SO questions, but get a little lost as to what's the best way to follow.
The SVN repository has a top-level folder structure with folders, something like:
|- client
|- server
|- website
|- misc
Most of those folders have the 'standard' svn structure: i.e. trunk
, branches
and tags
. Some are just flat folders however.
|- client
|- trunk
|- branches
|- tags
|- server
|- trunk
|- branches
|- tags
|- website
|- misc
The branches and tags might have the same name between different folders. For example, both client and server folders might have a branch called 1.0
.
I managed to convert individual folders using svn2git, and it seems to get the history, as well as branches fine. I can manage to create an individual git repository for each folder. However, I'd like to keep everything in one repository eventually.
What's the best way to merge those folders (now git repositories) into one, whilst maintaining the branches, tags and history of each folder? Using this approach, I seem to lose both the commit history and the branches from the merged-from repository... Or perhaps I'm just missing some important steps or doing something wrong?
Otherwise, maybe using svn2git
on each folder separately is not the best approach to migrate from svn to git?