Set up your workspace with Team Explorer Everywhere on Linux

I find it difficult to create a workspace and upload files from Team Foundation Server using the Team Explorer Everywhere command line (TEE-CLC-10.0.0). I got to creating a 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 upload 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 assume that I am 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 this in order to upload files.

+6
source share
1 answer

You will need to create working folder mappings between your local folder and the server items that you want to match.

For instance:

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

Then from the directory /home/me/project (or whatever you choose) you can simply do tf get .

+8
source

Source: https://habr.com/ru/post/894388/


All Articles