andrewb
andrewb

Reputation: 3095

I changed hostname, now tfs does not show pending changes or mappings

I changed my computer's host name yesterday and now in TFS I do not see the mapped folders in the source control explorer, nor do I see my pending changes.

Is there a way to get these back? I have pending changes but cannot be sure of every file with changes so I cannot do a fresh get as I may lose changes.

Upvotes: 1

Views: 105

Answers (1)

Andy Li-MSFT
Andy Li-MSFT

Reputation: 30422

You need to update the workspace computer name.

Open Developer Command Prompt or Run cmd

cd c:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE

Run this command:

tf workspaces /updateComputerName:MyOldComputerName /s:"http://MyServer:8080/tfs/MyCollection"

UPDATE:

If that not work, please try to clean the caches in your client machine,then remap to a new folder to check that again.


Besides, you can also install Team Foundation Sidekicks which providing Graphic User Interface for the administration and it's free.

  1. Open the Workspace Sidekick, click Search, and select your workspace from the list.
  2. Click the blue computer icon to Update Workspace Computer Name.

enter image description here

Upvotes: 1

Related Questions