I'm an svn user with a requirement to mirror my svn code to a git repository. Users of git will not have access to the svn repository, so the solution cannot rely on checking out the code directly from svn as some kind of external repository.
I'm trying to use git-svn such that I can make changes in svn, then update and sync them to git.
I've cloned the git repo into which I want to sync my svn code, then I do something like:
git svn clone svn+ssh://path/to/my/code --trunk my_module --prefix mirror/
I can see my svn repo being cloned. If I try to switch to the trunk branch like this:
git checkout mirror/trunk
I'm told that I'm in a detached HEAD state (a suitable error message for how I feel right now.)
So my question is, how do I get my locally checked out svn code to upload into a remote git repository. And secondly, how would I go about doing periodic updates of that code?