How To Install Git-secrets?
Install git-secrets
-
Debian
apt-get install git-secretsClick to copy -
Ubuntu
apt-get install git-secretsClick to copy -
Kali Linux
apt-get install git-secretsClick to copy -
macOS
brew install git-secretsClick to copy
git-secrets
Prevents accidental commits of credentialsgit-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.
Installation of latest git-secrets command is available for Debian, Ubuntu, Kali and macOS. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2026 latest package from the repository and install it in your computer/server.




