windows - Equivalent of svn import via Team Foundation Server command line -


subversion's svn import command allows repeatedly importing external directory tree source control. it's important note original directory tree not modified, ie not become checkout/working directory.

what equivalent in tfs 2010 (team foundation server), using command line?

you can create batch file first creates temporary workspace, add files , perform checkin, , removes workspace again:

tf workspace /new temp /collection:http://mytfsserver:8080/tfs/defaultcollection /noprompt

tf add *.* /recursive /noprompt

tf checkin /recursive /noprompt

tf workspace /delete temp /collection:http://mytfsserver:8080/tfs/defaultcollection /noprompt


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -