# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 git-absorb

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install git-absorb
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install git-absorb
```

  证据: MacPorts ports tree: devel/git-absorb/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add git-absorb
```

  证据: Alpine Linux edge package indexes: git-absorb from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install git-absorb
```

  证据: Debian stable package indexes: git-absorb from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install git-absorb
```

  证据: Fedora Rawhide package metadata: git-absorb from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

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

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

- pacman (92%):

```sh
sudo pacman -S git-absorb
```

  证据: Arch Linux sync databases: git-absorb from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install git-absorb
```

  证据: openSUSE Tumbleweed package metadata: git-absorb from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/git-absorb
```

  证据: Scoop official bucket manifest trees: bucket/git-absorb.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id tummychow.git-absorb -e
```

  证据: Windows Package Manager source index: tummychow.git-absorb from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:git-absorb
- **软件包管理器:** Homebrew
- **版本:** 0.9.0
- **来源摘要:** Automatic git commit --fixup
- **主页:** <https://github.com/tummychow/git-absorb>
- **仓库:** <https://github.com/tummychow/git-absorb>
- **最后更新:** 2026-06-22T14:03:30-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- git-absorb (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.9.0
## 项目历史与用法

git-absorb is a Rust command-line tool that creates fixup commits automatically by matching staged hunks to earlier commits in a feature branch. It brings an hg absorb-style review workflow to Git.

### 项目历史

The project began in February 2018 as a port of Facebook's hg absorb idea. The README cites a Mozilla version-control discussion that described automatically folding review feedback into the draft changesets that introduced the touched lines.

git-absorb translated that workflow into Git by producing fixup! commits that can be consumed by git rebase --autosquash, or by running the rebase itself with --and-rebase. Its documentation explains the core algorithm in terms of whether patches commute, using that test to infer which earlier commit a staged hunk belongs to.

The release history moved from rapid 0.1 and 0.2 tags in March 2018 through later 0.x releases, with 0.9.0 tagged in February 2026. The Cargo manifest identifies the package as a Rust binary named git-absorb and describes it as automatic git commit --fixup.

### 采用历史

git-absorb gained adoption among developers who maintain atomic commit stacks and want review fixes placed into the right commits before merge. The README lists packaging across Arch Linux, Debian, Fedora, FreeBSD, Homebrew, MacPorts, nixpkgs, openSUSE, Ubuntu, Void Linux, GNU Guix, and Windows Package Manager, and crates.io provides a Rust installation path through cargo install.

### 使用方式

Practitioners stage review fixes with git add, run git absorb, inspect the generated fixup commits, and then use git rebase -i --autosquash to fold them into the original commits. Users who trust the result can run git absorb --and-rebase, while recovery is documented through PRE_ABSORB_HEAD and the reflog.

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

git-absorb is package-relevant because it is a Git subcommand whose usefulness depends on being easy to install across developer machines. It also illustrates the package-manager spread of Rust CLI tools that wrap Git workflows without requiring users to adopt a new VCS.

### 时间线

- 2018: Repository initialized and 0.1.0 tagged.
- 2019: 0.4.0 and 0.5.0 tags followed after wider workflow hardening.
- 2025: 0.7.0 and 0.8.0 tags appeared.
- 2026: 0.9.0 was tagged.

### Related projects

- git-absorb is directly related to Facebook's hg absorb, Mercurial's history-editing workflow, Git's fixup commits, and Git's autosquash rebase mode.

### 来源

- <https://crates.io/api/v1/crates/git-absorb>
- <https://crates.io/crates/git-absorb>
- <https://github.com/tummychow/git-absorb>
- <https://github.com/tummychow/git-absorb/blob/master/Cargo.toml>
- <https://github.com/tummychow/git-absorb/blob/master/Documentation/git-absorb.adoc>
- <https://github.com/tummychow/git-absorb/blob/master/README.md>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

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

- Debian apt - git-absorb - 0.6.17-2+b2: normalized package name match | Debian stable package indexes: git-absorb from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Git commit --fixup, but automatic | https://github.com/tummychow/git-absorb
- Nix - git-absorb: normalized package name match | nixpkgs package indexes: pkgs/by-name/gi/git-absorb/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - git-absorb - 0.6.11-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: git-absorb from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Git commit --fixup, but automatic | https://github.com/tummychow/git-absorb
- apk - git-absorb - 0.9.0-r0: normalized package name match | Alpine Linux edge package indexes: git-absorb from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Automatically write fixup! commits, similar to hg absort | https://github.com/tummychow/git-absorb
- apk - git-absorb-bash-completion - 0.9.0-r0: normalized package name match | Alpine Linux edge package indexes: git-absorb-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for git-absorb | https://github.com/tummychow/git-absorb
- apk - git-absorb-doc - 0.9.0-r0: normalized package name match | Alpine Linux edge package indexes: git-absorb-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Automatically write fixup! commits, similar to hg absort (documentation) | https://github.com/tummychow/git-absorb
- apk - git-absorb-fish-completion - 0.9.0-r0: normalized package name match | Alpine Linux edge package indexes: git-absorb-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for git-absorb | https://github.com/tummychow/git-absorb
- apk - git-absorb-zsh-completion - 0.9.0-r0: normalized package name match | Alpine Linux edge package indexes: git-absorb-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for git-absorb | https://github.com/tummychow/git-absorb
- dnf - git-absorb - 0.9.0-5.fc45: normalized package name match | Fedora Rawhide package metadata: git-absorb from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Git commit --fixup, but automatic | https://crates.io/crates/git-absorb
- pacman - git-absorb - 0.9.0-2: normalized package name match | Arch Linux sync databases: git-absorb from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | git commit --fixup, but automatic | https://github.com/tummychow/git-absorb
- zypper - git-absorb - 0.6.17-1.6: normalized package name match | openSUSE Tumbleweed package metadata: git-absorb from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | git commit --fixup, but automatic | https://github.com/tummychow/git-absorb
- zypper - git-absorb-bash-completion - 0.6.17-1.6: normalized package name match | openSUSE Tumbleweed package metadata: git-absorb-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Bash Completion for git-absorb | https://github.com/tummychow/git-absorb
- zypper - git-absorb-fish-completion - 0.6.17-1.6: normalized package name match | openSUSE Tumbleweed package metadata: git-absorb-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Fish Completion for git-absorb | https://github.com/tummychow/git-absorb
- zypper - git-absorb-nushell-completion - 0.6.17-1.6: normalized package name match | openSUSE Tumbleweed package metadata: git-absorb-nushell-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Nushell Completion for git-absorb | https://github.com/tummychow/git-absorb
- zypper - git-absorb-zsh-completion - 0.6.17-1.6: normalized package name match | openSUSE Tumbleweed package metadata: git-absorb-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | ZSH Completion for git-absorb | https://github.com/tummychow/git-absorb
- MacPorts - git-absorb: normalized package name match | MacPorts ports tree: devel/git-absorb/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
