Remove Passwords or Other Text from VSTS Git
Saturday, 18. November 2017
In a perfect world no one would ever store usernames and passwords in code. We are on in a perfect world and I myself make mistakes and in the past I have created scripts that required passwords in them and I accidentally pushed the code to VSTS with the password entered. So I had to figure out how to remove that from the history of the file. I could have deleted the project and created a new one but I would have lost all my history of commits which I did not want to do. Here is how I found to remove text from commit history.