I want to track several subversion repositories in one git repository. I managed to get git svn to fetch all the subversion repositories into their own remote branches. So now
$ git branch -a
master
remotes/svn/Project1
remotes/svn/Project2
remotes/svn/Project3
Which seems good. Now I would like to merge all these branches into master, but in subdirectories as they all contain similar named files. I tried to checkout one the branches, move the files into a subdirectory, commit and then merge into master. But that results in an error:
remote: error: refusing to update checked out branch: refs/heads/CPSP
remote: error: By default, updating the current branch in a non-bare repository
...
What would be the right way to archive this this? To be clear I would like to end up with a repository that looks like this:
Project1/
Project2/
Project3/
Just to make clear, these directories do not exist in the subversion repositories.
I plan to only track the subversion repositories, not commit to them (though that would be nice to have) Tnx!