Check file in TFS (command line) with workspace

Can I just tell TFS that I have a file (name it Version.txt) and I want it to be checked in place (e.g. $ / MyProject / MyVersionLocation) and I don’t have any workspace setting for this location?

Something like (syntax syntax):

tf.exe c: \ Version.txt CheckIn $ / MyProject / MyVersionLocation / WorkSpaceOverride

If so, how do you do it?

+3
source share
1 answer

It is not possible to verify the file without mapping the workspace for this path.

"tf workspace" "tf workfold" .

:

tf workspace /collection:http://server:8080/tfs/Collection /new TempWorkspace /noprompt
tf workfold /collection:<server> /workspace:TempWorkspace /map $/MyProject/MyVersionLocation/Version.txt C:\Version.txt
+4

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


All Articles