# 使用 Homebrew, Nix 安装 git-hound

查看 git-hound 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:git-hound
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install git-hound
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#git-hound
```

  证据: nixpkgs package indexes: pkgs/by-name/gi/git-hound/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:git-hound
- **软件包管理器:** Homebrew
- **版本:** 1.0.0
- **来源摘要:** Git plugin that prevents sensitive data from being committed
- **主页:** <https://github.com/ezekg/git-hound>
- **仓库:** <https://github.com/ezekg/git-hound>
- **最后更新:** 2026-07-29T16:05:01+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- git-hound (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.0.0
## 项目历史与用法

git-hound is a Git plugin for preventing sensitive data from entering commits. It checks staged diffs against user-provided PCRE regular expressions before commit operations proceed.

### 项目历史

The repository was created in November 2015 as a Go command-line plugin. Its README presents Hound as a small Git extension with precompiled release binaries, Go installation, and Homebrew installation paths.

### 采用历史

git-hound fits the mid-2010s rise of local secret-scanning tools, when teams began adding pre-commit checks for passwords, database settings, tokens, and machine-specific paths. Its adoption stayed niche compared with larger scanners, but the repository attracted several hundred stars and was packaged for Homebrew and Nix.

### 使用方式

Practitioners run `git hound commit` to sniff staged changes before invoking `git commit`, or `git hound sniff` to scan a commit, a manual diff, a whole codebase, or repository history. The `.githound.yml` file separates warning patterns, failure patterns, and skipped filenames.

### 为什么软件包爱好者会关心

The package is interesting because it exposes Git's plugin naming convention: installing `git-hound` makes `git hound` available. It is also a compact example of pre-commit security tooling before secret scanning became a standard hosted-platform feature.

### 时间线

- 2015: GitHub repository created for the Go implementation.
- 2016: Several 0.5.x releases publish packaged binaries.
- 2017: 0.6.x releases continue the pre-1.0 line.
- 2020: 1.0.0 release published.

### Related projects

- git-hound is related to Git hooks, pre-commit frameworks, and secret scanners such as git-secrets and truffleHog, all of which try to catch sensitive strings before or after they enter Git history.

### 来源

- <https://api.github.com/repos/ezekg/git-hound/releases>
- <https://github.com/ezekg/git-hound>
- <https://raw.githubusercontent.com/ezekg/git-hound/master/README.md>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: .githound.yml
## 其他软件包管理器记录

- Nix - git-hound: normalized package name match | nixpkgs package indexes: pkgs/by-name/gi/git-hound/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/git-hound.yml](https://github.com/mxcl/pkgdb/blob/main/combined/git-hound.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
