From a question on Stackoverflow: https://stackoverflow.com/questions/44106103/how-to-import-gitlab-repository-to-bitbucket-repository
- Create a Bitbucket repo from web UI
- Clone source GitLab repo with
--bareoption
git clone --bare GITLAB-URL
- Add Bitbucket remote
cd REPO-NAME
git remote add bitbucket BITBUCKET-URL
- Push all commits, branches and tags to Bitbucket
git push --all bitbucket
git push --tags bitbucket
- Remove the temp repo
cd ..
rm -rf REPO-NAME