Change computer name for a TFS Workspace

前端 未结 15 1579
青春惊慌失措
青春惊慌失措 2020-12-07 08:57

My System Administrator renamed my computer. So where it was \"MyLaptop2\" it is now just \"MyLaptop\".

So now all my source control bindings and checked out files

15条回答
  •  执念已碎
    2020-12-07 09:31

    To avoid get and map after creating new workspace

    1. Run cmd

    2. Navigate to visual studio IDE path. Something like this:

      C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE
      
    3. Run this command:

      tf workspaces /updateComputerName:MyOldComputerName /s:"http://MyServer/tfs/MyCollection"
      
    4. In "manage workspace", delete the added workspace (named as your current computer name), and rename the old one to your current computer name.

    In this scenario you don't need any extra get and map.

提交回复
热议问题