git-secrets

Prevents accidental commits of credentials

Install

All systems
curl cmd.cat/git-secrets.sh
Debian Debian
apt-get install git-secrets
Ubuntu
apt-get install git-secrets
image/svg+xml Kali Linux
apt-get install git-secrets
Windows (WSL2)
sudo apt-get update sudo apt-get install git-secrets
OS X
brew install git-secrets

git-secrets

Prevents accidental commits of credentials

git-secrets scans commits, commit messages, and --no-ff merges to prevent adding secrets into your git repositories. If a commit, commit message, or any commit in a --no-ff merge history matches one of your configured prohibited regular expression patterns, then the commit is rejected.