Gitへの移行を参考にSVNからGitへの移行を行ったのでメモ。
$ svn checkout https://remote-server/svn/sample
$ svn log ^/ --xml | grep -P "^<author" | sort -u | perl -pe 's/<author>(.*?)<\/author>/$1 = /' > users.txt
users.txtの出力は下記のようになる。
moyaji = Yaji Mo <[email protected]>
tarou = Tarou Suzuki <[email protected]>
git svn clone https://remote-server/svn/sample --authors-file=users.txt --no-metadata -s sample
$ mkdir -p git/bare/sample.git
$ cd git/bare/sample.git
$ git --bare init --share
$ git remote add origin ssh://username@remote_server/git/bare/sample.git
$ git push -u origin master