How to get specific version of folder from tfs without creating a workspace?

后端 未结 4 540
情书的邮戳
情书的邮戳 2020-12-29 13:03

I would like to get the source code of a project at specific time (changeset). So I need do download whole folder. I would like to do it for different times and handling a d

4条回答
  •  有刺的猬
    2020-12-29 13:21

    You can use tf view to get a specific file without creating a workspace.

    Retrieves a specific version of a file to a temporary folder on your computer and displays it.
    
    tf vc view [/collection:TeamProjectCollectionUrl]
           [/console] [/recursive] [/output:localfile]
           [/shelveset:shelvesetname[;owner]] [/noprompt] itemspec
           [/version:versionspec] [/login:username,[password]]
    
    Versionspec:
    Date/Time         D"any .Net Framework-supported format"
                      or any of the date formats of the local machine
    Changeset number  Cnnnnnn
    Label             Llabelname
    Latest version    T
    Workspace         Wworkspacename;workspaceowner
    

提交回复
热议问题