Reputation: 10638
I am using TFS from VS2013. I have created a workarea and then I assign a local path in my computer to start getting last versions of some branches. I sometimes want to change local path of a branch (already mapped to a local folder) to point to another different local path from the same workarea or even to another local path of another different workarea. So I go into local path and I remove the content but Visual Studio already is pointing to that path and in the source control explorer path appears marked as white color instead of indicating it as not assinged and not allowed me to change it. How can I do this?
Also there is another case in which I am interesting in: If I has a branch already assigned to a local path within a workarea and I want to remove this and keep it again as unassigned how can I do it?
Upvotes: 1
Views: 878
Reputation: 51073
According to your description, seems you are using TFVC as your source control in TFS.
There is a mapping relationship for your local folder and source control folder in server. In general, you should map your entire project to a single local folder under c:\Users\YourName\Source\Workspaces. For example:
Some tips on effective folder names:
You could they change your local path according to your requirements here. After you changed, you may need to do a get latest to sync up all changes. If you do not need files download in original local path, simply delete them.
Also there is another case in which I am interesting in: If I has a branch already assigned to a local path within a workarea and I want to remove this and keep it again as unassigned how can I do it?
You just need to remove workspace mapping, you could do this from three ways.
More detail please refer Bogdan Gavril MSFT's reply in this question: How to remove a TFS Workspace Mapping?
Upvotes: 1