XtianGIS
XtianGIS

Reputation: 1006

How to remove a folder mapping from a TFS workspace?

I have a mapping to a folder in a TFS workspace:

$/Foo -> C:\Foo

one inner folder get the following mapping:

$/Foo/Bar -> C:\Foo\BAR

Is possible to remove the mapping of the "Bar"?

I do not want to remove the whole workspace (as many questions suggest). I already try deleting the cache of the TFS in the machine.

Upvotes: 2

Views: 5574

Answers (2)

starian chen-MSFT
starian chen-MSFT

Reputation: 33698

No, you can’t remove the mapping, but you can add/change inner folder mapping to a different folder.

  1. Open team explorer
  2. Click Workspaces dropdown box > Workspaces
  3. Select a workspace >Edit
  4. Add an additional mapping for inner folder (e.g. $/Foo/Bar) to a different folder (e.g. C:/Bar).

Upvotes: 1

ovebastiansen
ovebastiansen

Reputation: 61

You can use the cloak feature in tfs. Depending on the version of visual studio the right click menu is a bit different. In the later versions it is beneath the advanced when right clicking on a folder. You can also use the command line with tf cloak folder. This removes the disk usage of that folder and you can get latest on the top folder and it does not download the cloaked folder. I am using this to not download old release branches unless really needed ;)

Upvotes: 4

Related Questions