开发者

How to pull an entire project from TFS

While sifting through this page I figured I'd ask if anyone knows how to download an entire project using the tfs command line utility. It doesn't look like I need the get command... but I can't find anything that looks like what I want. If I have an empty folder I'd like to开发者_如何学Python map a project to some subfolder tfs will make when downloading the project. Like 'git clone project-url', any ideas?


It's a little verbose from the command line. You need to create a workspace, map a working folder and then do a get.

Something like this:

tf workspace /new TempWorkspace /collection:http://tfsServer:8080/tfs/defaultcollection /noprompt
tf workfold /unmap $/ /workspace:TempWorkspace
tf workfold /map "$/Project/Path/SomeFolder" localFolderName /workspace:TempWorkspace
tf get

Note that the unmap is there because the workspace creation generally creates a default mapping for you.

As a further note if you like git you can always use git-tfs as a front end for TFS source control.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜