Migrating projects to a GitLab instance
- From Bitbucket Cloud (aka bitbucket.org)
- From Bitbucket Server (aka Stash)
- From ClearCase
- From CVS
- From FogBugz
- From GitHub.com or GitHub Enterprise
- From GitLab.com
- From Gitea
- From Perforce
- From SVN
- From TFS
- From repo by URL
- By uploading a manifest file (AOSP)
- From Gemnasium
- From Phabricator
In addition to the specific migration documentation above, you can import any Git repository via HTTP from the New Project page. Be aware that if the repository is too large the import can timeout.
There is also the option of connecting your external repository to get CI/CD benefits.
Migrating from self-hosted GitLab to GitLab.com
If you only need to migrate git repos, you can import each project by URL, but issues and merge requests can’t be imported.
If you want to retain all metadata like issues and merge requests, you can use the import/export feature to export projects from self-hosted GitLab and import those projects into GitLab.com.
If you need to migrate all data over, you can leverage our api to migrate from self-hosted to GitLab.com. The order of assets to migrate from a self-hosted instance to GitLab is the following:
Keep in mind the limitations of the import/export feature.
You will still need to migrate your Container Registry over a series of Docker pulls and pushes and re-run any CI pipelines to retrieve any build artifacts.
Migrating between two self-hosted GitLab instances
The best method for migrating a project from one GitLab instance to another, perhaps from an old server to a new server for example, is to back up the project, then restore it on the new server.
In the event of merging two GitLab instances together (for example, both instances have existing data on them and one can’t be wiped), refer to the instructions in Migrating from self-hosted GitLab to GitLab.com.
Help and feedback
If there's something you don't like about this feature
To propose functionality that GitLab does not yet offer
To further help GitLab in shaping new features
If you didn't find what you were looking for
If you want help with something very specific to your use case, and can use some community support
POST ON GITLAB FORUM
If you have problems setting up or using this feature (depending on your GitLab subscription)
REQUEST SUPPORT
To view all GitLab tiers and features or to upgrade
If you want to try all features available in GitLab.com
If you want to try all features available in GitLab self-managed
If you spot an error or a need for improvement and would like to fix it yourself in a merge request
EDIT THIS PAGE
If you would like to suggest an improvement to this doc