开发者

How to pull an entire project from TFS

开发者 https://www.devze.com 2023-02-19 18:07 出处:网络
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 fin

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

精彩评论

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

关注公众号