git-secrets
git-secrets: A focused, free Git-hook tool for stopping secrets before they enter repositories. Ranked #19 of 24 in Secrets Scanning Software by our editors (7.4/10); pricing: Open source; best for simple free Git hook protection.
At a glance
- Editor score7.4 / 10
- PricingOpen source
- Best forSimple free Git hook protection
- Paid fromFree
- CI/CD scanningNo
- Facts checked22 Sep 2026

Where it wins
- Scans files, commits, messages, and complete repository history
- Installs pre-commit, commit-message, and merge hooks
- Supports custom rules, allowlists, AWS patterns, and external providers
Where it doesn't
- Protection centers on Git repositories and local command-line workflows
- Integrations are limited to Git, AWS credentials files, and Homebrew
- No AI-assisted scanning is part of the product's feature set
Our verdict on git-secrets
git-secrets is an open-source command-line tool for developers and teams that want local, repository-level protection against accidentally committing credentials and other sensitive values. It scans files, commits, commit messages, and complete repository history for configured prohibited patterns. Git hooks can reject matching commits, while the tool also supports merge hooks and push protection. Linux, macOS, and Windows are supported, with Homebrew available as an integration and installation path.
Its strongest capability is coverage across the Git workflow. Common AWS credential patterns can be registered, and teams can add their own prohibited regular expressions for project-specific secrets. Allowed patterns provide a way to filter false positives, while external secret providers extend how matching values can be handled. This gives teams useful control without changing the product's focused role as a local Git scanner and hook manager.
The product is free and open source, which suits developers who need straightforward preventative controls without a hosted service. Its boundaries matter: the supported version-control system is Git, and the published ecosystem centers on Git, AWS credentials files, and Homebrew. Teams looking for repository-level Git protection, custom rules, and history scanning should consider git-secrets. Organizations seeking broader platform coverage, centralized hosted management, or AI-assisted scanning should choose a product designed around those requirements instead.
Your product? Our editors can test git-secrets in depth and publish a review, labelled as paid · from $149/mo →
git-secrets pricing
git-secrets fact sheet
| Free plan | Not verified |
|---|---|
| Paid from | Free |
| Supported VCS | Git |
| CI/CD scanning | No |
| Pre-commit scanning | Yes |
| Pull-request scanning | No |
| Push protection | No |
| Custom detection rules | Yes |
| Repository limit | Not verified |
| Deployment | Self-hosted |
| Platforms | Windows, macOS, Linux |
| Support | Docs |
| Built for | Solo, Small business, Mid-market, Enterprise (editorial estimate) |
| Pricing | Open source |
| Website | github.com |
| Facts checked | 22 Sep 2026 |
Alternatives to git-secrets
- GitGuardianBroad secrets scanning with developer workflow controls, remediation, and enterprise deployment options.9.3
- TruffleHogDeep secret detection and credential verification for development and security teams.9.2
- KingfisherA broad, free scanner for exposed credentials across code, cloud, containers, and developer platforms.9.1
See all git-secrets alternatives →
Used git-secrets? Be the first to review it
The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used git-secrets for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.
Write a reviewTwo minutes · verified accounts only · read by an editor before it appears
Featured on iTechGuides
git-secrets is listed in our Secrets Scanning Software directory. Add the badge to your site — it links back to this page.
<a href="https://www.itechguides.com/products/git-secrets/"><img src="https://www.itechguides.com/best/badge/git-secrets.svg" alt="Featured on iTechGuides" width="230" height="46"></a>
Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.
Last updated · How we research and update

