- Install
git-svn
on linux - git-svn clone <SVN repo link> my-new-project
Let's move the tags to be proper git tags
-
cp -Rf .git/refs/remotes/tags/* .git/refs/tags/
rm -Rf .git/refs/remotes/tags
Move the references under refs/remotes:
cp -Rf .git/refs/remotes/* .git/refs/heads/
rm -Rf .git/refs/remotes
Add git server as remote
-
git remote add origin git@my-git-server:my-git-repo.git
Push it to github:
git push origin --all