Assign Bitbucket Server to Gitlab

我的梦境 提交于 2020-01-03 05:27:11

问题


I have Gitlab account free trial i want to connect gitlab with bitbucket To migrate from Bitbucket To Gitlab .

When i Choose > New project > Import project > Bitbucket > bitbucket.org index will appear to enter Email and Password , But i have Bitbucket installed my Server i want to assign my Bbitbucket server URL to Gitlab to Login from gitlab and began to migrate .

I can not log in to Bitbucket.org i want to log in with my bitbucket in my server username and password .

How can assign my Bitbucket server URL to gitlab to login from gitlab ?


回答1:


The BitBucket importer currently only works with BitBucket's cloud offering (bitbucket.org) and does not work with BitBucket Server.

This is no longer the case, since GitLab 11.2 (August 22nd, 2018)

See "Importer for Bitbucket Server":

While GitLab has supported importing projects from Bitbucket Cloud using OAuth authentication for quite some time, such an integration with the self-hosted Bitbucket Server wasn’t available. Until now.

With GitLab 11.2, it is now possible to import your projects from Bitbucket Server to GitLab with minimal effort. All that is required is to provide the server URL and your credentials. GitLab then lists all your BitBucket Server repositories, ready for import.

  • See documentation,
  • see issue,
  • see merge-request.



回答2:


According to the GitLab documentation:

The BitBucket importer currently only works with BitBucket's cloud offering (bitbucket.org) and does not work with BitBucket Server.

You can do the following to move the repo (but not the metadata such as pull requests or security settings):

  • git clone --bare your-repo-url
  • cd into the bare clone (your-repo.git)
  • git push --mirror your-git-lab-url

This copies the entire repo as is to the remote repo at the URL specified.



来源:https://stackoverflow.com/questions/51423693/assign-bitbucket-server-to-gitlab

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!