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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With