How to replace a string in a whole Git history?
问题 I have one of my passwords commited in probably few files in my Git repo. Is there some way to replace this password with some other string in whole history automatically so that there is no trace of it? Ideally if I could write simple bash script receiving strings to find and replace by and doing whole work itself, something like: ./replaceStringInWholeGitHistory.sh "my_password" "xxxxxxxx" Edit: this question is not a duplicate of that one, because I am asking about replacing strings