Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the fastest way to transfer all of my GitHub repositories to GitLab?

Tags:

git

github

gitlab

I'm looking to move entirely away from GitHub to GitLab as easily as possible.

like image 803
ajiromeditar Avatar asked Nov 01 '25 04:11

ajiromeditar


2 Answers

You can import your GitHub projects into GitLab. If you already have a gitlab account, just go to new (+) --> project --> import --> github. More info in: https://gitlab.com/import/github/new

like image 98
Ariel Mirra Avatar answered Nov 03 '25 22:11

Ariel Mirra


1. Begin creating a GitLab project

In GitLab, choose to create a new project, then go to the Import project tab (instead of the default Blank project). From th e list of available platforms to automatically import from, select the second option GitHub.

2. Create person access token

You will now need to give GitLab a personal access token that you initiate from GitHub. Login to GitHub and navigate to your per sonal settings. From there, select Developer settings, then Personal access tokens, then click Generate new token. Complete the form that you are prompted with; the repo scope setting is sufficient for basic transferring. Be sure to copy the token to your clipboard when finished.

3. Add personal access token to GitLab

Paste your personal access token into GitLab, then click List your GitHub repositories.

4. Import the desired projects

On the rightmost column with the header Status, choose to import all projects that you would like. If you would like to import all repositories at the same time, you can select the green button Import all repositories at the top.

For more information, please refer to the detailed post by GitLab on the topic by clicking on the image or link below:

enter image description here

https://docs.gitlab.com/ee/user/project/import/github.html

like image 42
JakeD Avatar answered Nov 03 '25 20:11

JakeD



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!