Search code examples
tfstfs-2015tfs-migration

Moving a sub folder/ area path in tfs 2015


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!.


Solution

  • 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.