Git - rewrite history

11 Jun 25

when i made wack repo public i received a Google notification about exposing an API key
I think the google map apikey had long since expired but i took the opportunity to remove it anyway
  • installed a python tool git-filter-repo
  • cp -R wack wack_backup
  • mirror cloned (-- mirror) the repo
  • git filter-repo --path "my api folder/" --invert-paths
  • git push --force --mirror
  • some messiness with ref errors to resolve
  • rm -rf wack
  • recloned (non-mirror)