# Install git-hooks-go with Homebrew

Git hooks manager. Version 1.3.1 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

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

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:git-hooks-go
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/git-hooks-go>
- **Version:** 1.3.1
- **Source summary:** Git hooks manager
- **Homepage:** <https://git-hooks.github.io/git-hooks>
- **Repository:** <https://github.com/git-hooks/git-hooks>
- **Upstream docs:** <https://git-hooks.github.io/git-hooks>
- **License:** MIT
- **Source archive:** <https://github.com/git-hooks/git-hooks/archive/refs/tags/v1.3.1.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- git-hooks (cli)
- git-hooks (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.3.1
- Local data: ok
- Upstream repository: https://github.com/git-hooks/git-hooks
- Upstream latest detected: v1.3.1 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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`.

### Timeline

- 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.

### Sources

- <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>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- 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
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** git-hooks-go
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [ggc](https://www.automicvault.com/pkg/brew/ggc/) - Shares av.db curated category or tags: cli, developer-tools, git, go, version-control.
- [git-appraise](https://www.automicvault.com/pkg/brew/git-appraise/) - Shares av.db curated category or tags: cli, developer-tools, git, go, version-control.
- [git-get](https://www.automicvault.com/pkg/brew/git-get/) - Shares av.db curated category or tags: cli, developer-tools, git, go, version-control.
- [lefthook](https://www.automicvault.com/pkg/brew/lefthook/) - Shares av.db curated category or tags: cli, developer-tools, git, git-hooks, version-control.
- [vibecheck](https://www.automicvault.com/pkg/brew/vibecheck/) - Shares av.db curated category or tags: cli, developer-tools, git, go, version-control.
- [aicommit](https://www.automicvault.com/pkg/brew/aicommit/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [aicommit2](https://www.automicvault.com/pkg/brew/aicommit2/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [aicommits](https://www.automicvault.com/pkg/brew/aicommits/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [git-archive-all](https://www.automicvault.com/pkg/brew/git-archive-all/) - Package names and metadata indicate a similar tool family. Shared terms: cli, control, developer, developer-tools, git.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
