let me say that I have commits like:
A-B-C-D-E-F-G
commit B contains some passwords (and some code changes) in commit G there are removed passwordes (added in B), and now they are readen from external files
so now in G there is no password but if someone will look into history he may see sensitive data from commit B.
Can i do something with it using git rebase or some another tool?