Skip to content

Instantly share code, notes, and snippets.

@mutalis
Last active October 1, 2024 01:45
Show Gist options
  • Save mutalis/8e90f5b4a5d802afa1469c02e9ce2570 to your computer and use it in GitHub Desktop.
Save mutalis/8e90f5b4a5d802afa1469c02e9ce2570 to your computer and use it in GitHub Desktop.
Remove secrets from a Repo.
git filter-repo --replace-text /tmp/replacements.txt --force
git filter-repo --invert-paths --path config/env.rb
git ls-files config/env.rb
ggshield secret scan repo repo-name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment