Change computer name for a TFS Workspace

前端 未结 15 1487
青春惊慌失措
青春惊慌失措 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:27
    1. Make a copy of project folder
    2. Map original local folder in TeamExplorer/SourceControl
    3. Set read-only attribute to original local folder and sub-folders
    4. Load project from original folder, Go online and Get latest version. Local files will be overwritten.
    5. Close solution, delete original folder, restore copy with original folder name
    6. Open solution, Go online and you can check-in files without conflicts.
    0 讨论(0)
  • 2020-12-07 09:29

    In Visual Studio.. Go to "Team Explorer-Home" ... you will be able to see your workspace name.. Click on it and "Manage".. Add your workspace.. This should do the trick..

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题