🍺 BREW Explorer

← all formulae

git-secrets

brew install git-secrets v1.3.0 Apache-2.0

Prevents you from committing sensitive information to a git repo

474
30-day installs · #1806
1.5k
90-day · #1807
5.1k
365-day · #1928
13.3k
★ GitHub stars · updated 11mo ago

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Prevents you from committing sensitive information to a git repo",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:38:05+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "git-secrets",
  "github_default_branch": "master",
  "github_last_commit_at": "2025-09-17T20:31:20Z",
  "github_readme_excerpt": "===========\ngit-secrets\n===========\n\n-------------------------------------------------------------------------------------------\nPrevents you from committing passwords and other sensitive information to a git repository.\n-------------------------------------------------------------------------------------------\n\n.. contents:: :depth: 2\n\nSynopsis\n--------\n\n::\n\n    git secrets --scan [-r|--recursive] [--cached] [--no-index] [--untracked] [\u003cfiles\u003e...]\n    git secrets --scan-history\n    git secrets --install [-f|--force] [\u003ctarget-directory\u003e]\n    git secrets --list [--global]\n    git secrets --add [-a|--allowed] [-l|--literal] [--global] \u003cpattern\u003e\n    git secrets --add-provider [--global] \u003ccommand\u003e [arguments...]\n    git secrets --register-aws [--global]\n    git secrets --aws-provider [\u003ccredentials-file\u003e]\n\n\nDescription\n-----------\n\n``git-secrets`` scans commits, commit messages, and ``--no-ff`` merges to\nprevent adding secrets into your git repositories. If a commit,\ncommit message, or any commit in a ``--no-ff`` merge history matches one of\nyour configured prohibited regular expression patterns, then the commit is\nrejected.\n\n\nInstalling git-secrets\n----------------------\n\n``git-secrets`` must be placed somewhere in your PATH so that it is picked up\nby ``git`` when running ``git secrets``.\n\n\\*nix (Linux/macOS)\n~~~~~~~~~~~~~~~~~~~\n\nYou can use the ``install`` target of the provided Makefile to install ``git secrets`` and the man page.\nYou can customize the install path using the PREFIX and MANPREFIX variables.\n\n::\n\n    make install\n\nWindows\n~~~~~~~\n\nRun the provided ``install.ps1`` powershell script. This will copy the needed files\nto an installation directory (``%USERPROFILE%/.git-secrets`` by default) and add\nthe directory to the current user ``PATH``.\n\n::\n\n    PS \u003e ./install.ps1\n\nHomebrew (for macOS users)\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n    brew install git-secrets\n\n.. warning::\n\n    **You\u0027re not done yet! You MUST install the git hooks for every repo that\n    you wis",
  "github_repo": "awslabs/git-secrets",
  "github_stars": 13332,
  "github_topics": [],
  "homepage": "https://github.com/awslabs/git-secrets",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 474,
  "installs_365d": 5054,
  "installs_90d": 1525,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "Apache-2.0",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "git-secrets",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 1806,
  "rank_365d": 1928,
  "rank_90d": 1807,
  "raw_hash": "60666d6b1f109d7a",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/g/git-secrets.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": "HEAD",
  "version_stable": "1.3.0",
  "versioned_formulae": [],
  "why_use_this": null
}