How to mirror svn repo trunk on github?

What is the best way to mirror an external svn external repository on github? I am not going to make any commitments in this project, I just want to keep everything I need in one place.

+4
source share
2 answers

I think this should work

git svn clone -T trunk https://SVN_REPO git remote add github GITHUB_REPO git push github master 

after this initial step you can do

 git svn rebase git push github master 
+3
source

There is a convenient migration script for this: sync2git

When you use rebase, you must tell it to get everything.

 git svn rebase \ --fetch-all \ -A "${AUTHORS_FILE}" 

Then it is a question of marking links and creating branches. For a better example see script.

0
source

All Articles