I have reviewed a number of stackoverflow questions and havent been able to find a solution for my issue.
We are migrating from SVN to GIT. Unfortunately, we do not have the standard folder structure.
Here is the structure I am trying to migrate over
ProductA
- branches
- ToolA
- ToolB
- tags
- trunk
"branches" folder has this structure:
- main_code_base -- considered as the trunk for our code base
- release_1
- release_2
- rel_3
- rel4
- rele2.x
- feature1
- feature2
In the git repo, we use "master"as the main branch. So under master this is the required folder structure.
Product (folder)
- ProductA (sub folder) Tools (folder, same level as Product)
- ToolA
- ToolB
I looked at various suggestions and have tried many different commands. Started with git svn clone, then moved to use git svn init and git svn fetch manually modify the $GIT_DIR/config file and provided different combination of values for fetch and branches under [svn-remote "svn"]
None of it works.
As a last resort, I am prepared to modify the svn structure and move ProductA/ToolA and ProductA/ToolB to ProductA/branches/ToolA and ProductA/branches/ToolB if it will make it easier to migrate.
Thanks in advance for your help.