开发者

Removing file with history in TFS

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜