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
Post a Comment