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.

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.

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.

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.

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.

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.

Support CNX Software - Donate via PayPal or cryptocurrencies, become a Patron on Patreon, or buy review samples
Notify of
newest most voted