Git How-To: Remove Your Password from a Repository | David Verhasselt
november 2011 by sweeney
When you’re making an app that uses credentials to access some service, in the early stages of development before any code to access a config-file is written, a username and password are occasionally hard-coded in the source.
Since you use version control like all good developers, it’s possible these hardcoded credentials get committed. This poses a grave security risk, especially if you want to open source the code including the repository.
Here’s how to remove a password from any file, in all revisions, in a git repository:
git
remove
string
password
Since you use version control like all good developers, it’s possible these hardcoded credentials get committed. This poses a grave security risk, especially if you want to open source the code including the repository.
Here’s how to remove a password from any file, in all revisions, in a git repository:
november 2011 by sweeney