Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I move a folder under a new folder in a TFS Team Project?

Suppose you have a TFS collection with a Samples project that contain your Visual Studio solution files.

Now you want to add a folder called SamplesProductA and move all the files inside it without losing the source control history. How can you do it?

Thanks.

like image 886
abenci Avatar asked Dec 03 '10 05:12

abenci


1 Answers

You cannot move the root folder of a team project to anywhere. So if you have files/directories in the root, you need to move the one-by-one to the SamplesProductA folder. You won't lose history with this action.

When you have moved all the files in the SamplesProductA folder, you can (in the future) use that folder to move all the sources to somewhere else. My advise is therefore to always create a subfolder in version control of a team project to be able to move and (even more important) to branch.

like image 164
Ewald Hofman Avatar answered Sep 29 '22 07:09

Ewald Hofman