# git-hooks-go を Homebrew でインストール

git-hooks-go のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:git-hooks-go
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install git-hooks-go
```

  証拠: local Homebrew formula metadata

## パッケージ情報

- **パッケージキー:** brew:git-hooks-go
- **パッケージマネージャ:** Homebrew
- **バージョン:** 1.3.1
- **ソース概要:** Git hooks manager
- **ホームページ:** <https://git-hooks.github.io/git-hooks>
- **リポジトリ:** <https://github.com/git-hooks/git-hooks>
- **最終更新:** 2026-07-09T19:34:54+02:00
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- git-hooks (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 1.3.1
## プロジェクトの歴史と使われ方

git-hooks is a Go-based manager for Git hooks. It provides the `git hooks` command and organizes client-side hooks into project, user, global, and semi scopes.

### プロジェクトの歴史

The project was created on GitHub in November 2014 and describes itself as rewritten from icefox/git-hooks with extra features. Its own history file records a 1.0.0 release in November 2014, and later GitHub releases added update, installation, and configuration improvements.

### 採用の歴史

git-hooks belongs to the older wave of hook managers that tried to make Git's local hook mechanism shareable before tools such as pre-commit became widespread. Its adoption signal is modest but real: the repository has several hundred stars, package-manager coverage through Homebrew, and a GitHub Pages manual that documents project, user, and system-wide hook scopes.

### 使われ方

Practitioners install the `git-hooks` binary, run `git hooks install` inside a repository, and place hook scripts in structured directories such as `githooks/pre-commit`. The tool can also read `githooks.json` for community hook repositories and uses Git system configuration for global hook directories.

### パッケージ好きにとっての重要性

The package matters as a small Git subcommand with configuration spread across repository files and Git config. For packagers, the `git-hooks-go` formula name avoids collision with generic hook terminology while exposing the executable as `git-hooks`.

### タイムライン

- 2014: GitHub repository created and 1.0.0 history entry recorded.
- 2015: Early releases fix repository detection and installation behavior.
- 2019: Release v1.2.0 adds SSH protocol support in `githooks.json`.
- 2020: Release v1.3.1 adds `hooks.global` support in user config.

### Related projects

- git-hooks is descended from icefox/git-hooks and occupies the same space as other Git hook managers that standardize local pre-commit, commit-msg, and related hook workflows.

### ソース

- <https://api.github.com/repos/git-hooks/git-hooks/releases>
- <https://git-hooks.github.io/git-hooks>
- <https://github.com/git-hooks/git-hooks>
- <https://raw.githubusercontent.com/git-hooks/git-hooks/master/History.md>
- <https://raw.githubusercontent.com/git-hooks/git-hooks/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: githooks.json, /etc/gitconfig, /usr/local/etc/gitconfig

## Combined YAML source

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


## ソース

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