Keep Secrets out of Git
stoeps.de/posts/2026/keep_secrets_out_of_gitThe author accidentally committed a secret to a Chezmoi repository and outlines the steps to remove it from the repository history using git filter-branch. To prevent future incidents, the author recommends using pre-commit with a configuration that includes hooks for detecting secrets and other potential issues. The author also shares their experience with pre-commit and suggests adding it to other repositories.