从 TFS2013 克隆 repo 时遇到问题
Trouble cloning repo from TFS2013
我正在尝试 migrate/convert 从 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
您指定了错误的 Team Foundation Server URL,它应该是集合 URL。
不应该“http://tfsserv:8080/tfs/defaultcollection/Brand It/Main/
”
只需尝试以下命令:
git tfs clone http://tfsserv:8080/tfs/DefaultCollection $/BrandIt/Main
我正在尝试 migrate/convert 从 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
您指定了错误的 Team Foundation Server URL,它应该是集合 URL。
不应该“http://tfsserv:8080/tfs/defaultcollection/Brand It/Main/
”
只需尝试以下命令:
git tfs clone http://tfsserv:8080/tfs/DefaultCollection $/BrandIt/Main