How To Install Git-secrets?

How To Install Git-secrets?

git-secrets

Prevents accidental commits of credentials

Maintainer: Francois Marier



Section: vcs

Install git-secrets

  • Debian apt-get install git-secrets Click to copy
  • Ubuntu apt-get install git-secrets Click to copy
  • Kali Linux apt-get install git-secrets Click to copy
  • macOS brew install git-secrets Click to copy

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.

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.