クレデンシャル流出防止のための「git-secrets」
Homebrewでgit-secretsをインストールします。
$ brew install git-secrets
Gitに設定します。
$ git secrets --register-aws --global OK $ git secrets --install ~/.git-templates/git-secretes ✓ Installed commit-msg hook to ~/.git-templates/git-secretes/hooks/commit-msg ✓ Installed pre-commit hook to ~/.git-templates/git-secretes/hooks/pre-commit ✓ Installed prepare-commit-msg hook to ~/.git-templates/git-secretes/hooks/prepare-commit-msg $ git config --global init.templatedir '~/.git-templates/git-secretes/'