# 使用 Homebrew, apt, MacPorts, Nix, pacman, dnf 安装 git-cinnabar

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install git-cinnabar
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install git-cinnabar
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install git-cinnabar
```

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

- Nix (92%):

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

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

- pacman (92%):

```sh
sudo pacman -S git-cinnabar
```

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

- dnf (92%):

```sh
sudo dnf install git-remote-hg
```

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

## 软件包事实

- **软件包键:** brew:git-cinnabar
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/git-cinnabar>
- **版本:** 0.7.4
- **来源摘要:** Git remote helper to interact with mercurial repositories
- **主页:** <https://github.com/glandium/git-cinnabar>
- **仓库:** <https://github.com/glandium/git-cinnabar>
- **许可证:** MPL-2.0 AND GPL-2.0-only
- **源码归档:** <https://static.crates.io/crates/git-cinnabar/git-cinnabar-0.7.4.crate>
- **最后更新:** 2026-06-25T04:21:18Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- git-cinnabar (cli)
- git-remote-hg (cli)
- git-cinnabar (别名)
- git-remote-hg (别名)

## 依赖

- mercurial

## 构建依赖

- rust

## macOS 提供的库

- bzip2
- curl

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.7.4
- 管理器更新时间: 2026-06-25
- 本地数据: OK
- 上游仓库: https://github.com/glandium/git-cinnabar
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

git-cinnabar is a Git remote helper for interacting with Mercurial repositories. It was created for the awkward but important boundary where developers wanted Git tooling while large projects, especially Mozilla's Gecko repositories, still used Mercurial hosting.

### 项目历史

The project is maintained by Mike Hommey under the glandium GitHub account. Its README explains the name as a reference to cinnabar, a mercury-bearing mineral, and describes the tool as a Mercurial bridge that does not keep a local Mercurial clone under the hood.

### 采用历史

git-cinnabar's ecosystem significance comes from Mozilla workflows. The README identifies mozilla-central, related Mercurial repositories, and try-server work as a major focus, and the documentation links to a Mozilla Gecko Git workflow. Package-manager records in the input also show distribution through Homebrew, Debian, Fedora, MacPorts, Nix, Arch, and related channels.

### 使用方式

Practitioners use Git commands against Mercurial repositories by cloning or fetching hg:: URLs, then use git-cinnabar commands to translate Git commits and Mercurial changesets. The tool also exposes Mercurial bookmarks, branch tips, and heads as Git refs and includes metadata validation and cleanup commands for long-lived clones.

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

For package users, git-cinnabar is significant because it packages a compatibility layer around two version-control histories rather than just a convenience command. It helped Git-oriented contributors work with Mercurial-hosted Mozilla repositories without abandoning standard Git commands.

### 时间线

- 0.2.x: Early public tags established the remote-helper line.
- 0.5.0: Repository metadata from versions lower than 0.5.0 required an upgrade path.
- 0.7.x: Later tags continued the Rust-backed 0.x series.

### Related projects

- The README compares git-cinnabar with older git-remote-hg and git-hg helpers and positions it around Mozilla's Mercurial repositories.

### 来源

- <https://formulae.brew.sh/formula/git-cinnabar>
- <https://github.com/glandium/git-cinnabar>
- <https://github.com/glandium/git-cinnabar/wiki/Mozilla:-A-git-workflow-for-Gecko-development>
- <https://raw.githubusercontent.com/glandium/git-cinnabar/master/README.md>


## 安全说明

narrow executable package without higher-risk signals.

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


## 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

- Unix: .git/config, ~/.gitconfig
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** git-cinnabar
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Conflicts With:** git-remote-hg
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Debian apt - git-cinnabar - 0.7.2-2: normalized package name match | Debian stable package indexes: git-cinnabar from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Git remote helper to interact with mercurial repositories | https://github.com/glandium/git-cinnabar
- Nix - git-cinnabar: normalized package name match | nixpkgs package indexes: pkgs/by-name/gi/git-cinnabar/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - git-cinnabar - 0.7.4-1: normalized package name match | Arch Linux sync databases: git-cinnabar from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Git remote helper to interact with Mercurial repositories | https://github.com/glandium/git-cinnabar
- MacPorts - git-cinnabar: normalized package name match | MacPorts ports tree: devel/git-cinnabar/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- MacPorts - git-remote-hg: installed executable or alias match | MacPorts ports tree: devel/git-remote-hg/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Debian apt - git-remote-hg - 1.0.4~ds-3: installed executable or alias match | Debian stable package indexes: git-remote-hg from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | bidirectional bridge between Git and Mercurial | https://github.com/mnauw/git-remote-hg
- Nix - git-remote-hg: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/gi/git-remote-hg/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- dnf - git-remote-hg - 1.0.4-8.fc45: installed executable or alias match | Fedora Rawhide package metadata: git-remote-hg from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Mercurial wrapper for git | https://github.com/mnauw/git-remote-hg


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [mercurial](https://pkg.so/zh-hans/brew/mercurial/) - Runtime dependency declared by Homebrew.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [libgit2](https://pkg.so/zh-hans/brew/libgit2/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [git-lfs](https://pkg.so/zh-hans/brew/git-lfs/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [lazygit](https://pkg.so/zh-hans/brew/lazygit/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [git-gui](https://pkg.so/zh-hans/brew/git-gui/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [tig](https://pkg.so/zh-hans/brew/tig/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [hub](https://pkg.so/zh-hans/brew/hub/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [repo](https://pkg.so/zh-hans/brew/repo/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [git-remote-codecommit](https://pkg.so/zh-hans/brew/git-remote-codecommit/) - Package names and metadata indicate a similar tool family. Shared terms: cli, developer, developer-tools, git, helper.
- [git-branchless](https://pkg.so/zh-hans/brew/git-branchless/) - Package names and metadata indicate a similar tool family. Shared terms: cli, control, developer, developer-tools, git.
- [git-series](https://pkg.so/zh-hans/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-cinnabar.yml](https://github.com/mxcl/pkgdb/blob/main/combined/git-cinnabar.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
