Shifting repository to Gitlab from Bitbucket, Github or Google code
Hello world, Sometime being a developer we might need to shift the project from bitbucket to gitlab and vise versa. So, this article all about shifting the project to Gitlab from Bitbucket. This article might also be also helpful for shifting from any other Github, Google Code, Fogbugz etc.
GitLab is a web-based Git repository manager with wiki and issue tracking features, using an open source license, developed by GitLab Inc.
Bitbucket is the Git solution for professional teams with the distributed version control system that makes it easy for you to collaborate with your team.
1. Existing Repository on Bitbucket
We must have an existing project in the bitbucket in order to shift the project from Bitbucket to Gitlab. So, In my case I have one Test Project.
2. Create new project in Gitlab
Now, create a new project in Gitlab by clicking to Create a project option.
Click on Import project option. here, you will see lots of option to import the project like Github, Bitbucket, Google Code and etc. In our case we need to import from Bitbucket so click on Bitbucket option.
Confirmation to access your bitbucket account. Just click on Grant Access to enable access.
3. Importing the Project
After granting the access you will be able to see the projects of bitbucket in gitlab like in the image below. Now click on Import option to import the project.
SMALL-ISSUE-MESSAGE: Error saving project: Path can contain only letters, digits, ‘_’, ‘-’ and ‘.’. Cannot start with ‘-’, end in ‘.git’ or end in ‘.atom’,Unable to save project. Error: Path can contain only letters, digits, ‘_’, ‘-’ and ‘.’. Cannot start with ‘-’, end in ‘.git’ or end in ‘.atom’
Here in my case after clicking the import I see the error message like above message. So after reading the error message we knew that this issue came because I had created the repository name (Project Name with space) so please remove the space and rename the repository to (ProjectName) in the bitbucket account and reimport the project in Gitlab account.
And finally, the project is imported from bitbucket to Gitlab.
Note|Change remote origin: After the project or repository is shifted from one account to another we need to change the remote origin of the existing project. So for this we need to ..
Happy Learning, Please share this article if you think the article is helpful. Cheers !!