开发者

Removing file with history in TFS

开发者 https://www.devze.com 2023-01-05 04:00 出处:网络
Is it pos开发者_StackOverflow中文版sible to remove a file with it\'s history from TFS source control? One of our team members hardcoded his password into a file and now we must remove the file with al

Is it pos开发者_StackOverflow中文版sible to remove a file with it's history from TFS source control? One of our team members hardcoded his password into a file and now we must remove the file with all it's history so the password cannot be found.


Use it carefully:

First, go to a directory that is mapped to a workspace.

tf destroy "$/path/filename.xyz"

I would use the /preview switch first to ensure it is destroying what I expect.

If you've done any branching, you'll want to destroy those, as well.

I have to agree with @MattMitchell... it seems easier to just use a different password (and don't hard code it this time).

0

精彩评论

暂无评论...
验证码 换一张
取 消