# 使用 Homebrew, apt, dnf, Nix 安装 git-imerge

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install git-imerge
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install git-imerge
```

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

- dnf (92%):

```sh
sudo dnf install git-imerge
```

  证据: Fedora Rawhide package metadata: git-imerge 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-imerge
```

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

## 软件包事实

- **软件包键:** brew:git-imerge
- **软件包管理器:** Homebrew
- **版本:** 1.2.0
- **来源摘要:** Incremental merge for git
- **主页:** <https://github.com/mhagger/git-imerge>
- **仓库:** <https://github.com/mhagger/git-imerge>
- **最后更新:** 2026-06-18T09:25:51+09:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- git-imerge (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

git-imerge is a Git extension for incremental merge, rebase, revert, and drop operations. It breaks large conflict sets into smaller pairwise conflicts and records progress inside Git refs so work can be paused, tested, shared, and resumed.

### 项目历史

Michael Haggerty's repository was created in May 2013, the same period in which the README points users to a GitMerge 2013 presentation and a practical introduction article. The project framed incremental merging as a way to reduce conflict pain by identifying exactly which commits from two branches conflict.

### 采用历史

git-imerge became a well-known specialist tool among advanced Git users because it addressed a real pain point in long-running branches: merge conflicts that are too large to understand at once. Its GitHub repository has thousands of stars and its packaging spans Homebrew, Debian, Fedora, Nix, and Ubuntu, indicating durable interest beyond a single distribution.

### 使用方式

Practitioners use commands such as `git-imerge merge BRANCH`, `git-imerge rebase BRANCH`, and `git-imerge continue` as analogues to Git's native merge and rebase workflows. During an operation, git-imerge records state under `refs/imerge/NAME`, can show a diagram of progress, and can simplify the final result into a merge, rebase, history-preserving rebase, or fuller intermediate history.

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

The package is notable because it is not a wrapper around a single Git porcelain command; it stores its own operation graph in Git's object database and refs. That makes it especially interesting to people who study Git internals, conflict resolution, and packaging of Git subcommands.

### 时间线

- 2013: GitHub repository created and GitMerge 2013 presentation referenced by the README.
- 2016: Release v1.0.0 published.
- 2018: Release v1.1.0 published.
- 2020: Release v1.2.0 published.

### Related projects

- git-imerge builds on Git's merge, rebase, rerere, refs, and object storage. It is related in spirit to conflict-reuse and history-preserving workflows rather than to ordinary visual merge tools.

### 来源

- <https://api.github.com/repos/mhagger/git-imerge/releases>
- <https://github.com/mhagger/git-imerge>
- <https://raw.githubusercontent.com/mhagger/git-imerge/master/README.md>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Debian apt - git-imerge - 1.2.0-5: normalized package name match | Debian stable package indexes: git-imerge from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | incremental merge and rebase for git | https://github.com/mhagger/git-imerge
- Nix - git-imerge: normalized package name match | nixpkgs package indexes: pkgs/by-name/gi/git-imerge/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - git-imerge - 1.2.0-5: normalized package name match | Ubuntu 24.04 LTS package indexes: git-imerge from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | incremental merge and rebase for git | https://github.com/mhagger/git-imerge
- dnf - git-imerge - 1.2.0-4.fc45: normalized package name match | Fedora Rawhide package metadata: git-imerge from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Incremental merge and rebase for Git | https://github.com/mhagger/git-imerge


## Combined YAML source

View the package source record on GitHub. [combined/git-imerge.yml](https://github.com/mxcl/pkgdb/blob/main/combined/git-imerge.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
