How to import a GIT repository from Bonobo GIT Server into Visual Studio Team Services

后端 未结 2 1647
野趣味
野趣味 2021-01-26 23:08

Since Visual Studio Team Services (on VisualStudio.com) is supporting Git repositories, we want to get rid of our own Git server (Bonobo Git) that is hosted on an azure machine.

相关标签:
2条回答
  • 2021-01-26 23:31

    I can reproduce this issue on my side.

    If you want to import something from the Internet, you're going to need Internet access. So make sure VSTS can access the Bonobo Git server first. You can try connecting the Bonobo Git server through a proxy. Reference this similar thread : Unable to import a git repository into TFS 2017.3

    And another workaround is Manually import the git repository (works as expected on my side):

    1. Create and cd to a temp folder, then run below command:

      git clone --bare http://172.17.16.147/Bonobo.Git.Server/Test0523.git

      cd Test0523.git

    2. Create a target git repository in VSTS (e.g. https://xx.visualstudio.com/GIT/_git/Git0523)

    3. Run below command to copy the source repo to the target repo. (It will popup the dialog to let you enter the credential to access VSTS in this step.)

      git push --mirror https://xx.visualstudio.com/GIT/_git/Git0523

      cd ..

      rm -rf Test0523.git

    0 讨论(0)
  • 2021-01-26 23:39

    Make sure that your Bonobo Git Server has a valid ssl certificate

    0 讨论(0)
提交回复
热议问题