无法使用命令行从TFS获取最新版本的子文件夹 [英] Not able to get the latest version of sub-folders from TFS using command line

查看:174
本文介绍了无法使用命令行从TFS获取最新版本的子文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在尝试使用命令行提示从TFS获取最新版本的代码。命令工作正常,但它只获取Main文件夹中的最新版本的文件夹。 Main文件夹中的所有子文件夹都是空的。我需要找到一个
的方式,以便它也可以获取子文件夹中的文件/文件夹。下面是我正在使用的命令。


" C:\Program Files(x86)\ Microsoft Visual Studio 12.0 \Common7\IDE\TF.exe"得到"$ / QA / Main"


我们非常感谢任何帮助。


谢谢!


解决方案

嗨!


你必须使用"/ recursive"参数因为你设置itemspec。
https://www.visualstudio.com/en-us/docs/tfvc/ get-command










/递归



递归获取指定目录和所有子目录中的项目。如果您未指定
itemspec ,则隐含此选项。




Hi,

I am trying to get latest version of the code from TFS using command line prompt. Command is working fine but it's only fetching latest version of the folders inside the Main folder. All the sub-folders inside the Main folder are empty. I need to find a way so that it also fetches files/folders inside sub-folders. Below is the command that I am using.

"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\TF.exe" get "$/QA/Main"

Any help will be really appreciated.

Thanks!

解决方案

Hi!

You have to use "/recursive" parameter because you set itemspec. https://www.visualstudio.com/en-us/docs/tfvc/get-command

/recursive

Recursively gets items in the specified directory and any subdirectories. If you do not specify an itemspec, then this option is implied.


这篇关于无法使用命令行从TFS获取最新版本的子文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆