1

One of my team's created a new folder under a team project and using it as a separate project in tfs 2015.

Is it possible to move that sub folder project to a new project in the same collection?.

Thanks in advance!.

DevOps9
  • 37
  • 6

1 Answers1

0

You can use tf rename command to move the path of a file or folder without losing the source control history.

tf rename "$/PROJECT/Sub folder/*.*" "$/NEW PROJECT/XX/"

Note: The results of this command are not reflected in the Team Foundation version control server until you perform a check-in operation.

Required Permissions

To use the rename command, you have the Check out permission set to Allow.

PatrickLu-MSFT
  • 49,478
  • 5
  • 35
  • 62
  • Thanks Patrick, but the folder has three different sub folders in it. Can I move the folder to new team project with in the same collection without having any effect on Work items ?. – DevOps9 Jun 15 '16 at 03:15
  • My pleasure ,any update on it? In your situation, the 'move' is not accurate. But you can copy it to another project in the same collection using the copy option in Web Access (manually). This actually just creates a new work item and copies all the matching field values to the new item. If it works, could you mark it as an answer? If it's not working, glad to give your more advise. – PatrickLu-MSFT Jun 20 '16 at 02:16
  • 1
    Thanks Patrick for your help, haven't tried it yet was busy administering TFS as of now. Will update you once I get a chance to change the folders. – DevOps9 Jun 20 '16 at 02:52