Трабл клонирования репо от TFS2013

Я пытаюсь перенести / преобразовать одну ветку из TFS2013 в локальное git-репо, сохраняя при этом историю изменений.

Я могу выполнить git-tfs list-remote-branches http://tfsserv:8080/tfs/defaultcollectionи увидеть репо, я после, но когда я пытаюсь выполнить git-tfs clone http://tfsserv:8080/tfs/DefaultCollection/Brand%20It/Main/ $/BrandIt/Main, где tfsserv мой TFS сервер, Brand It это проект TFS и Main это ветка, которую я ищу, я получаю следующую ошибку:

Initialized empty Git repository in C:/Users/bellhousem/Desktop/GitTfs-0.27.0/Main/.git/

TF31002: Unable to connect to this Team Foundation Server: http://tfsserv:8080/tfs/defaultcollection/Brand It/Main/.
Team Foundation Server Url: http://tfsserv:8080/tfs/defaultcollection/Brand It/Main/.

Possible reasons for failure include:
- The name, port number, or protocol for the Team Foundation Server is incorrect.
- The Team Foundation Server is offline.
- The password has expired or is incorrect.

Technical information (for administrator):
The remote server returned an error: (404) Not Found.
The remote server returned an error: (404) Not Found.
All the logs could be found in the log file: C:\Users\myname\AppData\Local\git-tfs\git-tfs_log.txt

Насколько я могу видеть здесь или здесь, я думаю, что я использую правильную команду. У кого-нибудь есть идеи, что я могу делать не так?

1 ответ

Решение

Вы указали неправильный URL-адрес Team Foundation Server, это должен быть URL-адрес коллекции.

Не должно быть http://tfsserv:8080/tfs/defaultcollection/Brand It/Main/"

Просто попробуйте команду ниже:

git tfs clone http://tfsserv:8080/tfs/DefaultCollection $/BrandIt/Main
Другие вопросы по тегам