How to Migrate from Github to Gitlab

Github is by far the most popular web-based hosting service for version control using Git, but it’s not the only option as Gitlab and Bitbucket offer alternatives.

If for whatever reasons, you feel the need to migrate from Github to another service, it’s actually quite easy, and I’ve tried it with Gitlab, which offers a very easy solution to import your code repositories from Github.

First, you’ll need to sign-in to Gitlab. That part does not need explanation. The next step is to go to Settings->Account, and in the Social Sign-in section, connect Gitlab to your Github account.

Gitlab-Connect-to-Github
Click to Enlarge

After logging in to your Github account, youl should be set. Now click on the + icon on the op of the web page, and select New Project.

Gitlab-New-ProjectClick on the Import project tab, and import project from Github.

Gitlab-Import-Project
Click to Enlarge

You’ll be asked to input your Github password again, and be brouhgt to your list of repositories. Now you can simply click on Import all repositories if you wish to do so, or only select the ones you want to import one by one.

Gitlab-Import-Repositories-from-Github
Click to Enlarge

I clicked on Import all repositories, and all my own projects – including the one I forked – could be imported, but I also got an error: “an error occurred while importing project “.  This is for projects I’m a member of, but which are not directly associated to my Github account.

Gitlab-import-failed
Click to Enlarge

For example, imx6-dongle/linux-imx and linux-sunxi/sunxi-tools failed to import. If that’s the case I cannot explain why linux-sunxi/sunxi-bsp was imported successfully however.

Anyway, the import process was easy enough, and you still have all your commits and messages shown in Gitlab.

Gitlab-Commits-Message-After-Import
Click to Enlarge

I think the process is easy enough, but if you have any issues, Gitlab uploaded a video on YouTube to help you out.

Gitlab is free to use if you are limited needs, but they also have paid plans for more demanding requirements. However, XDA Developer has just reported that GitLab Ultimate and GitLab Gold are now free for open source projects and education, so it may be worthwhile to benefit from this offer.

Share this:
FacebookTwitterHacker NewsSlashdotRedditLinkedInPinterestFlipboardMeWeLineEmailShare

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

ROCK Pi 4C Plus

10 Replies to “How to Migrate from Github to Gitlab”

    1. SourceForge has promoted such a system to import from Github too : https://sourceforge.net/p/forge/documentation/GitHub Importer/

      Else there are lot of community hub, like framagit, GNU Savannah + It’s possible to install own instance of cgit, gitlab, gitea, savannah, Apache Allura (used by sourceforge), etc….. go language scripted gitea and gogs are powerfull but light enough to be histed on aa SGC like Raspb Pi.

      1. It used to be true, but they moved to another large US company cloud service now: Google Cloud.

  1. “GitLab Ultimate and GitLab Gold are now free for open source projects”
    “It should not have paid support or paid contributors.”

    That pretty much rules out all *useful* open source software! (linux, etc.)

  2. I have discovered notabug.org, their interface looks slick!

    For gitlab, i am testing their kubernetes intégration to an orangepi board at home that runs kubernetes in order to access a serial port in à pod.

Leave a Reply

Your email address will not be published. Required fields are marked *

Khadas VIM4 SBC
Khadas VIM4 SBC