How to migrate SVN to GitLab with few commands

GitLab
  1. First we should install git
$ sudo apt-get install git

2. Then you should install git-svn

$ sudo apt-get install git-svn

3. Clone your repository by git-svn command

$ git svn clone YOUR_SVN_URL

4. Add your Gitlab url in same directory.

$ git remote add gitlab YOUR_GITLAB_URL

5.Finally push your SVN repository to Gitlab.

$ git push — set-upstream gitlab master

That’s all, See your GitLab in web view you can see all SVN code in GitLab with commit status and all old history.

GitLab web view

$……………….……………… Happy coding………………………………….$

I have a passion for understanding technology at a fundamental level and Sharing ideas and code. * Aspire to Inspire before I expire* https://balavenkatesh.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store