This How-to explains within few minutes how to import a GitHub repository into GitLab. Both SVN have a lot in common, but also some big differences. For some of them, I decided to move to GitLab.

1. Create a GitLab Account

To import something from GitHub into GtiLab, you need an account. You just have to fill some identification information and you’ll be ready.

Here is the link to register : https://gitlab.com/users/sign_in#register-pane

2. Create a new Project

Once logged-in, Click on “New Project”.

3. Select Import Project from GitHub

Then, select the “Import Project” tab and click on “GitHub”

4. Choose the repositories to import

GitLab will prompt the list of the available repositories. You can choose to either select the ones to import or import all of them.

5. Create your CI configuration

One of the magic things on GitLab is their CI/CD. To get started with this, you only need to create a “.gitlab-ci.yml”. With this file, you’ll be able to do all the stages you want like building, testing and deploying. Plus, this is completely free (with some limitations).

If you’re interested, you can take a look at the one in this project : https://gitlab.com/reidprojects/pysinope

This is all you need to import a GitHub repository into GitLab.
For more development posts, check our Python projects !