简体   繁体   English

使用 git-tfs 克隆 TFS 存储库

[英]Cloning TFS repository using git-tfs

I'm trying to clone a GIT repository in TFS using git-tfs using TFS 2013我正在尝试使用 git-tfs 使用 TFS 2013 在 TFS 中克隆一个 GIT 存储库

git tfs clone http://servername:8080/tfs/DCM "$/Python"

Gives me:给我:

error: the path $/Python you want to clone doesn't exist!

"DCM" is the name of the collection and "Python" is the name of the project: “DCM”是集合的名称,“Python”是项目的名称:

在此处输入图片说明

I try to list the branches:我尝试列出分支:

git tfs list-remote-branches http://servername:8080/tfs/DCM

which yields:产生:

No TFS branches were found!

My instinct is that this is a syntax error, but not sure what I'm doing wrong.我的直觉是这是一个语法错误,但不确定我做错了什么。

As the main developer of "git-tfs", I'm very pleased you absolutely want to use it!作为“git-tfs”的主要开发者,我很高兴你绝对想使用它! But there is no need of it here ;-)但这里不需要它;-)

The repository you want to clone is already a git repository (see the small red git icon like the one in the git website ).您要克隆的存储库已经是一个 git 存储库(参见git 网站中的小红色 git 图标)。

git-tfs is a bridge tool to be able to import a TFVC history in a local git repository. git-tfs 是一个桥接工具,能够在本地 git 存储库中导入 TFVC 历史记录。

So, you just need to do a pure git clone, that should be something like :所以,你只需要做一个纯 git 克隆,应该是这样的:

 git clone http://servername:8080/tfs/DCM/Python.git

The URL is provided by the web portal, at the exact page you are, in the upper right corner. URL 由 Web 门户提供,位于您所在的确切页面,位于右上角。 You should have a 'clone' button...你应该有一个“克隆”按钮......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM