Check in a file to TFS (command line) withouth a work space

后端 未结 1 826
忘了有多久
忘了有多久 2021-01-20 13:28

Is it possible to just say to TFS that I have a file (call it Version.txt) and I want it to be checked in at a location (say $/MyProject/MyVersionLocation) and not have any

1条回答
  •  囚心锁ツ
    2021-01-20 14:04

    It is not possible to checkin a file without a workspace mapping for that path.

    One option would be to use a combination of "tf workspace" and "tf workfold" to dynamically create a workspace before checking in.

    For example:

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

    0 讨论(0)
提交回复
热议问题