简体   繁体   中英

Create local mapping on Team Foundation Services workspace using tf vc commands

I'm trying to create a local mapping to an already existing workspace using tf vc commands on the command prompt. Is this possible?

You can use Tf workfold command to realize the mapping. In the command option, there is /map option which specifies an association between a local folder and the Team Foundation version control server folder .

The syntax is as follows:

tf workfold [/map serverfolder localfolder] [/collection:TeamProjectCollectionUrl] 

[/workspace:workspacename][/login:username,[password]

So the command is like the below:

tf workfold $/projects/MyTeamProject/* C:\LocalWorkfold\TeamProject 

/map  /collection:http://servername:8080/tfs/defaultcollection

/workspace:"WorkspaceName"

/login:username,password

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM