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).
精彩评论