简体   繁体   English

git-tfs clone创建空文件夹

[英]git-tfs clone creates empty folder

I am trying to clone a project from TFS using git-tfs tool. 我正在尝试使用git-tfs工具从TFS克隆项目。

git tfs clone http://aserver:8080/tfs.... $//ABC/Proj1

Result is a folder with empty git repository which contains history of commits but there are no source code files in it and none of the commits contains diff. Result是一个空git存储库的文件夹,其中包含提交历史记录,但其中没有源代码文件,并且所有提交都不包含diff。

Am I wrong expecting to have a directory with source code plus a git repo with commits history with diffs? 我错了,希望有一个带有源代码的目录加上一个带有差异的提交历史记录的git repo吗? What can be done to get achieve this result? 怎样才能获得这个结果?

Thank you 谢谢

The part "/Proj1" is redundant. “ / Proj1”部分是多余的。

For example, if you have a project named "Pro1" in TFS default collection, you just need to run the code following: 例如,如果您在TFS默认集合中有一个名为“Pro1”的项目,则只需运行以下代码:

git tfs clone http://aserver:8080/tfs/DefaultCollection $/Pro1

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

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