Setting up a workspace using Team Explorer Everywh

2019-03-20 11:58发布

Im having trouble creating a workspace and downloading the files from a Team Foundation Server using the Team Explorer Everywhere command line client (TEE-CLC-10.0.0). I've gotten as far as creating workspace:

$ ../tfs/TEE-CLC-10.0.0/tf -login:secretUsername,secretPassword -server:http://secretHost:8080 workspace -new KOLOBI
Workspace 'KOLOBI2' created.

Then I want to download files from the server to my workspace:

$ ../tfs/TEE-CLC-10.0.0/tf -login:secretUsername,secretPassword -server:http://secretHost:8080 get -recursive -all -force .
An argument error occurred: Items must reside in a workspace that has been previously used on this computer.

I guess I'm missing one step which is to add local directories to the workspace or something like that. But I can't figure out how to do it to be able to download the files.

1条回答
爱情/是我丢掉的垃圾
2楼-- · 2019-03-20 12:26

You'll need to create working folder mappings between your local folder and the server items you wish to correspond to.

For example:

tf workfold -map -login:secretUsername,secretPassword -server:http://secretHost:8080 -workspace:KOLOBI '$/TeamProject/Project' '/home/me/project'

Then from the /home/me/project directory (or whatever you pick), you can just execute tf get .

查看更多
登录 后发表回答