# git-format-staged を Homebrew でインストール

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

## インストール

```sh
sudo av install brew:git-format-staged
```

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

### macOS

- Homebrew (100%):

```sh
brew install git-format-staged
```

  証拠: local Homebrew formula metadata

## パッケージ情報

- **パッケージキー:** brew:git-format-staged
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/git-format-staged>
- **バージョン:** 4.0.2
- **ソース概要:** Git command to transform staged files using a formatting command
- **ホームページ:** <https://github.com/hallettj/git-format-staged>
- **リポジトリ:** <https://github.com/hallettj/git-format-staged>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://github.com/hallettj/git-format-staged/archive/refs/tags/v4.0.2.tar.gz>
- **最終更新:** 2026-08-03T14:53:25Z
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- git-format-staged (cli)
- git-format-staged (エイリアス)

## macOS 提供ライブラリ

- python

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 all

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 4.0.2
- マネージャ更新日: 2026-08-03
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/hallettj/git-format-staged
- 検出された最新: v4.0.2 (最新)
## プロジェクトの歴史と使われ方

git-format-staged is a Python Git helper that runs a formatter or linter against the staged version of files, preserving unstaged working-tree edits.

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

The repository began in March 2018. Its README explains the project as a response to pre-commit formatting hooks that run a formatter over working-tree files and then restage the result, a pattern that can accidentally commit unrelated unstaged edits or disrupt `git add -p` workflows.

### 採用の歴史

git-format-staged sits in the ecosystem around Prettier, Husky, lint-staged, pre-commit, pretty-quick, and language-specific hook managers. It distinguishes itself by formatting blobs from the Git index and then attempting to patch the working tree afterward, rather than stashing user edits before formatting.

### 使われ方

Practitioners install it through Nix, npm, Homebrew, or by copying the script, then call it from pre-commit hooks with a formatter command that reads from stdin and writes to stdout. Typical use passes file patterns and a formatter placeholder, such as running Prettier with `--stdin-filepath` for staged JavaScript, TypeScript, or CSS files.

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

The package is notable because it solves a small but sharp Git-index problem without tying users to one language ecosystem. That makes it attractive for polyglot repositories and hook setups where the important boundary is Git's staged content rather than a particular formatter.

### タイムライン

- 2018: The repository began with an initial commit.
- 2018: The v1.0.0 tag established the installable Git helper.
- Later releases: Packaging expanded across npm, Nix, and Homebrew usage paths.

### Related projects

- git-format-staged is commonly compared with lint-staged, pre-commit, pretty-quick, precise-commits, Husky, and formatter tools such as Prettier.

### ソース

- <https://formulae.brew.sh/formula/git-format-staged>
- <https://github.com/hallettj/git-format-staged>
- <https://github.com/hallettj/git-format-staged#readme>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** git-format-staged
- **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


## 関連リンク

- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [gh](https://pkg.so/ja/brew/gh/) - Shares pkgdb curated category or tags: cli, developer-tools, git.
- [libgit2](https://pkg.so/ja/brew/libgit2/) - Shares pkgdb curated category or tags: cli, developer-tools, git.
- [glab](https://pkg.so/ja/brew/glab/) - Shares pkgdb curated category or tags: cli, developer-tools, git.
- [git-lfs](https://pkg.so/ja/brew/git-lfs/) - Shares pkgdb curated category or tags: cli, developer-tools, git.
- [lazygit](https://pkg.so/ja/brew/lazygit/) - Shares pkgdb curated category or tags: cli, developer-tools, git.
- [bat](https://pkg.so/ja/brew/bat/) - Shares pkgdb curated category or tags: cli, developer-tools, git.
- [git-filter-repo](https://pkg.so/ja/brew/git-filter-repo/) - Shares pkgdb curated category or tags: cli, developer-tools, git.
- [git-delta](https://pkg.so/ja/brew/git-delta/) - Shares pkgdb curated category or tags: cli, developer-tools, git.
- [git-format-staged](https://pkg.so/ja/npm/git-format-staged/) - Same normalized package name appears in another local ecosystem. Shared terms: cli, developer, developer-tools, files, format.
- [git-number](https://pkg.so/ja/brew/git-number/) - Package names and metadata indicate a similar tool family. Shared terms: cli, developer, developer-tools, files, git.
- [git-xet](https://pkg.so/ja/brew/git-xet/) - Package names and metadata indicate a similar tool family. Shared terms: cli, developer, developer-tools, files, git.
- [git-format-staged](https://pkg.so/ja/npm/git-format-staged/) - Same normalized package name in another local ecosystem.

## Combined YAML source

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


## ソース

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
