0

"Microsoft has added an even easier way to import any Git repo into your VSTS account. You can now import it directly from the Team Services:

From the Repository dropdown list, select Import repository. Enter the clone URL of your source repo, your credentials, and the name of your new repository Click Import, wait a few seconds… Your repository, including all history, and branches is now available in VSTS!"

Source "https://stackoverflow.com/questions/ask?title=Importing%20Git%20repo%20of%20Bitbucke%20in%20to%20TFS%20Git%20".

I have tried providing require details to initiate code from external git repository to VSTS git but ending up with errors.

Import request cannot be processed due to one of the following reasons: Clone URL is incorrect. Credentials are incorrect. Clone URL points to an empty repository.

How to proceed further?

7
  • The error message gave you three possibilities. Have you investigated those three possibilities? Commented Apr 4, 2018 at 22:41
  • Which one are you using, on-premise TFS or VSTS? For VSTS, the url should be something like this https://{useraccount}.visualstudio.com Commented Apr 5, 2018 at 8:44
  • Daniel, thank you for your response I am using on-premise TFS, I have verified all the three, it looks fine for me. Still having the same problem. Commented Apr 5, 2018 at 20:14
  • Could you share the format of your clone url? Commented Apr 11, 2018 at 8:48
  • @user9473385 Any update on this, have the issue been solved? Commented May 10, 2018 at 2:27

1 Answer 1

1

Suggest you first go through the tutorial-- Import a Git repo. This guide shows you how to import an existing Git repo from GitHub, Bitbucket, GitLab, or other location into a new or empty existing repo in your VSTS project.

If you are using on-premise TFS, you must have TFS 2017 Update 1 or higher.

  • If the source repo is publicly available, just enter the clone URL of the source repository and a name for your new Git repository.
  • If the source repository is private but can be accessed using basic authentication (username-password, personal access token, etc.), select Requires authorization and enter the your credentials.

Double confirm this and follow the step in tutorial, then try again see if the issue solved.

Besides, just like Daniel suggested the error message also gave you three possibilities. You could investigate those three possibilities to narrow down the issue.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.