I have a git repo that I have decided to make public, which means moving database connection info into a .gitignored file. However, my repository history still contains the commits that I added and then removed the information.
I have tried the solution from this question using interactive rebase, but this seems to only allow me to change/reorder the commit message, not the code that was included in the commit.