{"id":12802,"date":"2019-03-28T20:45:13","date_gmt":"2019-03-28T20:45:13","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=12802"},"modified":"2019-03-28T20:45:13","modified_gmt":"2019-03-28T20:45:13","slug":"how-to-migrate-from-github-to-gitlab","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/28\/how-to-migrate-from-github-to-gitlab\/","title":{"rendered":"How to Migrate from GitHub to GitLab"},"content":{"rendered":"<p>As you may very well know,\u00a0<strong>Gitlab<\/strong>\u00a0is among the best\u00a0<a href=\"https:\/\/www.tecmint.com\/github-alternatives-to-host-open-source-projects\/\" target=\"_blank\" rel=\"noopener\">alternatives to Github<\/a>, the first that comes to mind, from the available options.\u00a0<strong>Gitlab<\/strong>\u00a0is a scalable and efficient Git-based fully featured platform for software development: it supports a complete DevOps lifecycle.<\/p>\n<p><strong>Read Also<\/strong>:\u00a0<a href=\"https:\/\/www.tecmint.com\/install-and-configure-gitlab-on-centos-7\/\" target=\"_blank\" rel=\"noopener\">How to Install and Configure GitLab on CentOS 7<\/a><\/p>\n<p>Do you have projects on\u00a0<strong>Github<\/strong>\u00a0and want to migrate to\u00a0<strong>Gitlab<\/strong>? In this article, we will explain how to migrate from\u00a0<strong>Github<\/strong>\u00a0to\u00a0<strong>Gitlab<\/strong>\u00a0and also we will explain how to import your open source project from\u00a0<strong>Github<\/strong>\u00a0to\u00a0<strong>Gitlab<\/strong>\u00a0in a few easy steps, using the GitHub integration feature.<\/p>\n<p><strong>Attention<\/strong>: The instructions below work for users on\u00a0<strong>Gitlab.com<\/strong>, for a self-hosted Gitlab instance, you have to manually enable the GitHub integration feature to use this method.<\/p>\n<h4>Requirements:<\/h4>\n<p>Before going any further, ensure that:<\/p>\n<ul>\n<li>Both your\u00a0<strong>Github<\/strong>\u00a0and\u00a0<strong>Gitlab<\/strong>\u00a0accounts are created using the same public email account or.<\/li>\n<li>You logged into the\u00a0<strong>GitLab<\/strong>\u00a0account using the\u00a0<strong>GitHub<\/strong>\u00a0icon, meaning you use the same email address for both accounts.<\/li>\n<\/ul>\n<p>The above requirements also apply to all other users who are attached to your\u00a0<strong>Github<\/strong>\u00a0project, that you want to map to\u00a0<strong>Gitlab<\/strong>.<\/p>\n<h3>Migrating From Github to Gitlab<\/h3>\n<p><strong>1.<\/strong>\u00a0First go to\u00a0<a href=\"https:\/\/gitlab.com\/users\/sign_in\" target=\"_blank\" rel=\"nofollow noopener\">Gitlab Sign In<\/a>\u00a0page and then sign in with the\u00a0<strong>Github<\/strong>\u00a0icon, or\u00a0<strong>Register<\/strong>\u00a0with the same email address you used for registering with\u00a0<strong>Github<\/strong>.<\/p>\n<div id=\"attachment_29737\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/GitLab-Sign-In.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29737\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/GitLab-Sign-In.png\" sizes=\"auto, (max-width: 832px) 100vw, 832px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/GitLab-Sign-In.png 832w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/GitLab-Sign-In-768x653.png 768w\" alt=\"GitLab Sign In\" width=\"832\" height=\"707\" aria-describedby=\"caption-attachment-29737\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-29737\" class=\"wp-caption-text\">GitLab Sign In<\/p>\n<\/div>\n<p><strong>2.<\/strong>\u00a0After successfully signing in, go to the top navigation bar, click on\u00a0<code>+<\/code>\u00a0and choose\u00a0<strong>New project<\/strong>\u00a0and enter path of your New Project as shown.<\/p>\n<div id=\"attachment_29738\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/GitLab-Create-New-Project.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29738\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/GitLab-Create-New-Project.png\" sizes=\"auto, (max-width: 968px) 100vw, 968px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/GitLab-Create-New-Project.png 968w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/GitLab-Create-New-Project-768x521.png 768w\" alt=\"GitLab Create New Project\" width=\"968\" height=\"657\" aria-describedby=\"caption-attachment-29738\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-29738\" class=\"wp-caption-text\">GitLab Create New Project<\/p>\n<\/div>\n<p><strong>3.<\/strong>\u00a0Next, click on the\u00a0<strong>Import project<\/strong>\u00a0tab and then choose\u00a0<strong>GitHub<\/strong>\u00a0from the available options as shown in the screenshot.<\/p>\n<div id=\"attachment_29739\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/Select-GitHub-Repository-Source.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29739\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/Select-GitHub-Repository-Source.png\" sizes=\"auto, (max-width: 968px) 100vw, 968px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/Select-GitHub-Repository-Source.png 968w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/Select-GitHub-Repository-Source-768x521.png 768w\" alt=\"Select GitHub Repository Source\" width=\"968\" height=\"657\" aria-describedby=\"caption-attachment-29739\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-29739\" class=\"wp-caption-text\">Select GitHub Repository Source<\/p>\n<\/div>\n<p><strong>4.<\/strong>\u00a0You will be redirected to the repository importation page, click on\u00a0<strong>List your GitHub repositories<\/strong>.<\/p>\n<div id=\"attachment_29740\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/List-GitHub-Repositories.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29740\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/List-GitHub-Repositories.png\" sizes=\"auto, (max-width: 968px) 100vw, 968px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/List-GitHub-Repositories.png 968w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/List-GitHub-Repositories-768x521.png 768w\" alt=\"List GitHub Repositories\" width=\"968\" height=\"657\" aria-describedby=\"caption-attachment-29740\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-29740\" class=\"wp-caption-text\">List GitHub Repositories<\/p>\n<\/div>\n<p><strong>5.<\/strong>\u00a0Then, you should be redirected to an external application authorization page on\u00a0<strong>github.com<\/strong>\u00a0to authorize the\u00a0<strong>GitLab<\/strong>, as shown in this screenshot. Click\u00a0<strong>Authorize gitlabhq<\/strong>.<\/p>\n<div id=\"attachment_29741\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/Authorize-Github-to-Gitlab-Repository.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29741\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/Authorize-Github-to-Gitlab-Repository.png\" sizes=\"auto, (max-width: 968px) 100vw, 968px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/Authorize-Github-to-Gitlab-Repository.png 968w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/Authorize-Github-to-Gitlab-Repository-768x521.png 768w\" alt=\"Authorize Github to Gitlab Repository\" width=\"968\" height=\"657\" aria-describedby=\"caption-attachment-29741\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-29741\" class=\"wp-caption-text\">Authorize Github to Gitlab Repository<\/p>\n<\/div>\n<p><strong>6.<\/strong>\u00a0You will be redirected back to\u00a0<strong>Gitlab\u2019s import page<\/strong>\u00a0where you should see a list of all your\u00a0<strong>GitHub repositories<\/strong>. Click on\u00a0<strong>Import<\/strong>\u00a0from the status column, for each repository you want to import from\u00a0<strong>Github<\/strong>\u00a0to\u00a0<strong>Gitlab<\/strong>.<\/p>\n<div id=\"attachment_29742\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/Import-Github-Repositories-to-Gitlab.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29742\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/Import-Github-Repositories-to-Gitlab.png\" sizes=\"auto, (max-width: 968px) 100vw, 968px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/Import-Github-Repositories-to-Gitlab.png 968w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/Import-Github-Repositories-to-Gitlab-768x480.png 768w\" alt=\"Import Github Repositories to Gitlab\" width=\"968\" height=\"605\" aria-describedby=\"caption-attachment-29742\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-29742\" class=\"wp-caption-text\">Import Github Repositories to Gitlab<\/p>\n<\/div>\n<p><strong>7.<\/strong>\u00a0Once your repository is imported, its status will change to\u00a0<strong>Done<\/strong>\u00a0as shown in this screenshot.<\/p>\n<div id=\"attachment_29743\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/Github-Repositories-Imported-to-Gitlab.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29743\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/Github-Repositories-Imported-to-Gitlab.png\" sizes=\"auto, (max-width: 968px) 100vw, 968px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/Github-Repositories-Imported-to-Gitlab.png 968w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/Github-Repositories-Imported-to-Gitlab-768x378.png 768w\" alt=\"Github Repositories Imported to Gitlab\" width=\"968\" height=\"476\" aria-describedby=\"caption-attachment-29743\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-29743\" class=\"wp-caption-text\">Github Repositories Imported to Gitlab<\/p>\n<\/div>\n<p><strong>8.<\/strong>\u00a0Now from your\u00a0<strong>Gitlab Projects<\/strong>\u00a0list, the repository you just imported should be there.<\/p>\n<div id=\"attachment_29744\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/Migrated-GitHub-Proects-to-GitLab.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29744\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/Migrated-GitHub-Proects-to-GitLab.png\" sizes=\"auto, (max-width: 968px) 100vw, 968px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/Migrated-GitHub-Proects-to-GitLab.png 968w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/Migrated-GitHub-Proects-to-GitLab-768x378.png 768w\" alt=\"Migrated GitHub Proects to GitLab\" width=\"968\" height=\"476\" aria-describedby=\"caption-attachment-29744\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-29744\" class=\"wp-caption-text\">Migrated GitHub Proects to GitLab<\/p>\n<\/div>\n<p>For more information, go to the\u00a0<a href=\"https:\/\/docs.gitlab.com\/ee\/user\/project\/import\/github.html#using-the-github-integration\" target=\"_blank\" rel=\"nofollow noopener\">GitLab Docs<\/a>\u00a0page.<\/p>\n<p>That\u2019s all! In this article, we have explained how to migrate from\u00a0<strong>Github<\/strong>\u00a0to\u00a0<strong>Gitlab<\/strong>. If you have any questions, or thoughts to share, reach us via the feedback form below.<\/p>\n<p><a href=\"https:\/\/www.tecmint.com\/migrate-from-github-to-gitlab\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As you may very well know,\u00a0Gitlab\u00a0is among the best\u00a0alternatives to Github, the first that comes to mind, from the available options.\u00a0Gitlab\u00a0is a scalable and efficient Git-based fully featured platform for software development: it supports a complete DevOps lifecycle. Read Also:\u00a0How to Install and Configure GitLab on CentOS 7 Do you have projects on\u00a0Github\u00a0and want to &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/28\/how-to-migrate-from-github-to-gitlab\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Migrate from GitHub to GitLab&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-12802","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12802","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=12802"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12802\/revisions"}],"predecessor-version":[{"id":12803,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12802\/revisions\/12803"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=12802"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=12802"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=12802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}