I need to clone an SVN repository as a bare Git repo.
At the moment, I accomplished this by:
Cloning the SVN repo with
git-svn:$ git svn clone http://svn.code.sf.net/p/syntaxhighlight/code/Moving the
.gitdirectory to the wanted place:$ mv code/.git /srv/git/syntaxhighlight
But I don't find this really handy and I cannot see any reference to bare when I man git svn. Besides, if the SVN repo has been updated, I can run git svn fetch, but I get errors when I try to rebase.
Can any option do the trick?
Ideally, I would like an option similar to git clone --mirror.
Running Git 2.1.4