gogs / gogs

Gogs is a painless self-hosted Git service
https://gogs.io
MIT License
45k stars 4.86k forks source link

Ability to migrate from svn #4290

Closed dmitrybubyakin closed 7 years ago

dmitrybubyakin commented 7 years ago

I think it would be great to be able to migrate from svn (like gogs-url/repo/migrate for git repos. Now I use git-svn to do this locally.

master-d commented 7 years ago

I did this recently using a custom bash script and the gogs api to create and populate the git repositories. You'll want to use a custom script to do the migration since your SVN repository can be laid out in any number of different ways and it'll enable you to finetune the translation of the svn authors -> git authors, svn comments, and how to handle svn branches and tags when migrating to git.

unknwon commented 7 years ago

Hi, I would recommend you use professional tools to make the transition from svn to Git. Unfortunately, Gogs is not one of them.

mckaygerhard commented 7 years ago

the solution its to use the svn2git warpper and then once the git repo was created from svn conversion locally, upload to the git repository finally