Let's say I have accidentally pushed some secret, like a password, to a git repo. So, commit and push origin master. How can I completely delete it from the history. I have read many answers about this and the most logic one seems to be git rebase after which it says Successful but nothing changes..
>git log
commit 48fe584bf7b6b88a68cd4495c0b4c8c562c47dd1 (HEAD -> master, origin/master, origin/HEAD)
Author: me
Date: Wed Nov 25 17:32:20 2020 +0100
u
commit 168ee00260a704c2d20f8c70e52cb8db3ee2057b
Author: me
Date: Wed Nov 25 17:19:27 2020 +0100
yy
commit a19d7856ad600c0dd3cf5c512e7cb8336a1573cf
Author: me
Date: Tue Nov 24 16:00:48 2020 +0100
iii
> git rebase -i a19d7856ad600c0dd3cf5c512e7cb8336a1573cf
Successfully rebased and updated refs/heads/master.
after which git log shows exactly the same...