Or `rm -rf .git && git init && git commit -m "init"` and then read through. Common to scrap previous history when you go from private -> public repository anyways, a lot in order to scrub potential things like this to leak through.
If I'm at all worried about having accidentally committed secrets in the past, I usually create a new repo for the public release with a fresh git init.