Automic VaultAutomic Vault

brew

使用 Homebrew 安装 git-hooks-go

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install git-hooks-go

local Homebrew formula metadata

概览

软件包摘要

Git hooks manager

命令和别名

  • git-hooks

历史

项目历史与用法

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.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 13 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

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

Config paths the tool may read or write during local use.

Unix
githooks.json/etc/gitconfig/usr/local/etc/gitconfig

可执行文件

已安装的可执行文件

命令类型暴露范围备注
git-hookscli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本1.3.1
管理器更新时间2026-07-09
本地数据OK
上游当前
检测到的最新版本v1.3.1

https://github.com/git-hooks/git-hooks

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:git-hooks-go
版本1.3.1
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/git-hooks-go
主页https://git-hooks.github.io/git-hooks
仓库https://github.com/git-hooks/git-hooks
上游文档https://git-hooks.github.io/git-hooks
许可证MIT
源码归档https://github.com/git-hooks/git-hooks/archive/refs/tags/v1.3.1.tar.gz
最后更新2026-07-09T19:34:54+02:00
Pulseupdated
构建依赖go
Bottle可用 (于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegit-hooks-go
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedyes
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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