Shifting repository to Gitlab from Bitbucket, Github or Google code

Bipin Pandey
Jan 12, 2018 · 3 min read

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

GitLab is a web-based Git repository manager with wiki and issue tracking features, using an open source license, developed by GitLab Inc.

Bitbucket

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 !!

Resume and CV Builder App

profyl.org biologylearner.com bipinpandey.com

Bipin Pandey

Written by

iOS|Android | FullStack | Researcher | EDM| Traveller | https://www.linkedin.com/in/jazzbpn/ | http://bipinpandey.com/ | http://profyl.org/

Resume and CV Builder App

profyl.org biologylearner.com bipinpandey.com

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade