通过命令行从TFS获取最新源
我正在尝试从命令行从 TFS 获取一个项目。我在服务器上有它的位置(以 $/
开头)和一个我想将其放入的目录。
我导航到该目录,输入 tfworkspace /new /s:
,然后输入工作区名称。
接下来,我输入 tf get /force /recursive /version:W
另外,我想将项目下载到工作区目录中,然后下载
,目前它会生成一堆文件夹(基于$/the/long/path/to /the/
在服务器上)。
有什么办法可以做到这一点,或者我需要在完成后移动它吗?
I'm trying to grab a project from TFS from the command line. I have its location on the server (starts with $/
) and a directory I want to put it in.
I navigate to that directory, type tf workspace /new /s:<servername>
, and enter a workspace name.
Next I type tf get /force /recursive /version:W<workspacename>
, it returns 'All files are up to date', however it hasn't downloaded anything.
Also, I'd like to download the project into the workspace directory and then <projectname>
, currently it makes a bunch of folders (based on $/the/long/path/to/the/<projectname>
on the server).
Is there a way I can do that or do I need to move it after I'm done?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您还必须映射文件夹。查看
tf workfold
将命令行中冒号后面的任何内容替换为适合您环境的正确值。
此外,您可以在任何您想要的级别进行映射。例如,您可以将
$/Project/Folder/Project1/Source
映射到C:\TFSSource\Project1
You also have to map the folders. Take a look at
tf workfold
Substitute anything in that command line that follows a colon into the correct value for your environment.
Also, you can map at any level that you want. For instance, you could map
$/Project/Folder/Project1/Source
toC:\TFSSource\Project1