# 使用 Homebrew, Nix 安装 git-fixup

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install git-fixup
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

## 软件包事实

- **软件包键:** brew:git-fixup
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/git-fixup>
- **版本:** 1.6.1
- **来源摘要:** Alias for git commit --fixup
- **主页:** <https://github.com/keis/git-fixup>
- **仓库:** <https://github.com/keis/git-fixup>
- **上游文档:** <https://github.com/keis/git-fixup#readme>
- **许可证:** ISC
- **源码归档:** <https://github.com/keis/git-fixup/archive/refs/tags/v1.6.1.tar.gz>
- **已生成:** 2026-07-25T07:20:51+00:00

## 可执行文件

- git-fixup (cli)
- git-fixup (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-07-25
- 管理器版本: 1.6.1
- 本地数据: OK
- 上游仓库: https://github.com/keis/git-fixup
- 检测到的最新版本: v1.6.1 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

git-fixup is a small shell-based Git helper that automates creation of fixup, squash, and amend commits for interactive rebase workflows.

### 项目历史

David Keijser's repository began in June 2013 with the stated purpose of reducing the copy-and-paste work in a rebase workflow. The README presents `git fixup <ref>` as a convenience wrapper around `git commit --fixup <ref>`, while the argument-free form uses Git blame and log data to suggest commits touched by the staged lines or files.

### 采用历史

The tool occupies a niche around Git autosquash usage rather than serving as a general-purpose Git frontend. Its README documents installation through Homebrew, Arch packaging, manual installation, and shell completion, which shows the script was designed for developer workstations and command-line integration.

### 使用方式

Practitioners stage the changes that should amend an older commit, run `git fixup` to select or infer a target commit, and then use interactive rebase with autosquash to fold the generated fixup or squash commit into place. Configuration is provided through Git config keys and environment variables for defaults such as base revision, action, menu command, and whether to rebase after committing.

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

git-fixup is package-nerd useful because it turns a common review-cleanup ritual into a tiny Git subcommand without adding a large workflow system. Its value is in the Unix-tool shape: a shell script, optional completion, and compatibility with external menu tools such as fzf.

### 时间线

- 2013: The repository was created and the first commit described the tool as fixup-focused.
- 2015: README imagery and usage examples documented the interactive candidate-selection workflow.
- Later releases: The command gained squash, amend, rebase, menu, and shell-completion support.

### Related projects

- git-fixup builds on Git's `commit --fixup`, `commit --squash`, and `rebase --autosquash` workflow, and it can be paired with menu tools such as fzf.

### 来源

- <https://github.com/keis/git-fixup>
- <https://github.com/keis/git-fixup#readme>
- <https://github.com/keis/git-fixup/blob/master/CHANGELOG.md>


## 安全说明

没有找到 git-fixup 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

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

## 其他软件包管理器记录

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


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [braid](https://www.automicvault.com/zh-hans/pkg/brew/braid/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [codeberg-cli](https://www.automicvault.com/zh-hans/pkg/brew/codeberg-cli/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [dura](https://www.automicvault.com/zh-hans/pkg/brew/dura/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [gcli](https://www.automicvault.com/zh-hans/pkg/brew/gcli/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [git-absorb](https://www.automicvault.com/zh-hans/pkg/brew/git-absorb/) - Shares av.db curated category or tags: cli, developer-tools, fixup, git.
- [git-branchless](https://www.automicvault.com/zh-hans/pkg/brew/git-branchless/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [git-cinnabar](https://www.automicvault.com/zh-hans/pkg/brew/git-cinnabar/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [git-cola](https://www.automicvault.com/zh-hans/pkg/brew/git-cola/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [git-series](https://www.automicvault.com/zh-hans/pkg/brew/git-series/) - 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-fixup.yml](https://github.com/automic-vault/db/blob/main/combined/git-fixup.yml)


## 来源

- Nucleus package database
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
