Will deleting a project in TFS remove the files, or will the history be preserved?

故事扮演 提交于 2019-12-25 08:35:50

问题


The reason I'm asking is that I want to test something, that I expect will generate a number of commits, totalling a lot of data, and since it's only a test, I don't want to leave them permanently in the database.

Do I have to set up a temporary TFS server for this, or can I just delete the project afterwards and expects its disk space to be reclaimed?


回答1:


Disk space will not be reclaimed by normal deletion. You always have the option to undelete something in TFS, so changes will never get lost. (It's kind of a good feature in a source control system).

Do remember that TFS stores files as diffs between commits, so the disk space usage might not be so large as you expect.

You can, however, use tf.exe destroy to permanently delete your changes. I think this will allow you to reclaim disk space (though I haven't tested personally). Please be cautious if using tf destroy.



来源:https://stackoverflow.com/questions/3880158/will-deleting-a-project-in-tfs-remove-the-files-or-will-the-history-be-preserve

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!