I am attempting to use a git svn clone to move my SVN repo over to Git, whilst preserving the history. I know that Git SVN clone works for me as I have tried it with a simple test SVN repo.
The problem that I have is that the SVN repo does not have a trunk directory and all of the code is in a /branch directory (not /branches). git svn clone is returning an error as no /trunk directory is available.
So my question is, how do I move the content in my SVN /branch directory into /trunk whilst preserving the history?
If you are using default layout for
git init(which I think is the default ingit-svn, though I might be wrong on that assumption), thengit-svnwill fail if that is not the case.... however, you can pinpoint separate branches by using-Tor--trunkwhen callinggit svn init. Check https://git-scm.com/docs/git-svn