Safely delete a TFS branch project

后端 未结 4 875
借酒劲吻你
借酒劲吻你 2021-01-01 10:36

I\'m currently reorganising our TFS source control for a very large set of solutions, and I\'ve done this successfully so far.

I have a problem at the moment where I

4条回答
  •  耶瑟儿~
    2021-01-01 11:35

    In TFS you generally cannot permanently delete anything inside a team project (and TfsDeleteProject deletes a complete team project, but it is not clear if the source control content will actually be removed as a team project is just the top level of the source control tree).

    A delete of a file, or whole set of files is just another tracked change, go back into history and it can still be seen.

    You could use permissions to make it inaccessible to all. Or rename under an "Obsolete" team project.

    EDIT (I finally remembered where this command was):

    There is another option, from the command line: tf destroy:

    Destroys, or permanently deletes, version-controlled files from Team Foundation version control.

    I would expect this to remove the branch records to create the, now destroyed, files... but you might need to check.

提交回复
热议问题