I made a mistake and one file on a project in a git repository contains a password. It is not a problem because is not a public repo but I would like to get rid of that password in the repo.
The repository history is very simple as I'm the only developer so it only has 12 commits and one of the commits is tagged.
The change in this case will not affect anything on the history (the diff will remain the same) as the password I want to delete is present just from the very first commit. I would like to remove that string as if it hasn't been there anytime.
Is there some kind of command to do this or I must regenerate the history just from the beginning with a new starting point without the password and applying the diffs on top of that?