I needed to commit my existing Git repository to an empty SVN repository.
This is how I managed to do this:
$ git checkout master
$ git branch svn
$ git svn init -s --prefix=svn/ --username <user> https://path.to.repo.com/svn/project/
$ git checkout svn
$ git svn fetch
$ git reset --hard remotes/svn/trunk
$ git merge master
$ git svn dcommit
It worked without problems. I hope this helps someone.
Since I had to authorize myself with a different username to the SVN repository (my origin
uses private/public key authentication), I had to use the --username
property.