2

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 map a project to some subfolder tfs will make when downloading the project. Like 'git clone project-url', any ideas?

Richard Banks
  • 12,456
  • 3
  • 46
  • 62
213897
  • 1,561
  • 4
  • 15
  • 16

1 Answers1

1

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.

Richard Banks
  • 12,456
  • 3
  • 46
  • 62