# 使用 Homebrew, Nix 安装 git-spice

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install git-spice
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

## 软件包事实

- **软件包键:** brew:git-spice
- **软件包管理器:** Homebrew
- **版本:** 0.31.2
- **来源摘要:** Manage stacked Git branches
- **主页:** <https://abhinav.github.io/git-spice/>
- **仓库:** <https://github.com/abhinav/git-spice>
- **最后更新:** 2026-07-27T14:57:49+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- git-spice (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

git-spice is a Git stacking tool that manages dependent branches and submits them as pull requests or merge requests across several forge providers.

### 项目历史

The project repository was created in 2023, with early public code and alpha tags appearing in 2024. Its documentation defines stacking as creating branches or change requests that build on top of each other so related work can stay small and reviewable while preserving dependency order.

git-spice grew from local branch navigation and restacking into a forge-aware workflow tool. The README and documentation describe support for GitHub, GitLab, Bitbucket, Gitea, Forgejo, and Codeberg-style workflows, while the changelog records later additions such as fork-based contribution flows, Ubuntu PPA packaging, and experimental stack merge commands.

### 采用历史

Adoption belongs to the stacked-PR niche, a workflow popular among engineers who split large changes into reviewable layers. The project documents incremental adoption, offline-first local state, shorthand commands, and a visible user-community section, making it part of the newer wave of Git tools that bring Phabricator-style stacked change review to GitHub and GitLab users.

### 使用方式

Practitioners use git-spice through the git-spice executable or the gs shorthand. Typical flows create or track stacked branches, submit one branch or an entire stack, sync with trunk, delete merged branches, restack dependent branches after base changes, and keep local metadata in Git configuration.

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

git-spice matters to package and developer-tool watchers because it is a forge-neutral, open-source entry in the stacked-branch space. Its packaging in Homebrew and Nix makes a workflow that once depended on hosted services or workplace-specific tooling easier to install as a normal CLI.

### 时间线

- 2023: GitHub repository was created.
- 2024: First public code and alpha tags appeared.
- 2026: Changelog entries documented fork workflows, additional forge support, and stack merge experiments.

### Related projects

- The related practice area is stacked pull requests and merge requests, with git-spice positioning itself as a Git-compatible branch manager rather than a replacement for Git.

### 来源

- <https://abhinav.github.io/git-spice>
- <https://formulae.brew.sh/formula/git-spice>
- <https://github.com/abhinav/git-spice>
- <https://github.com/abhinav/git-spice/blob/main/CHANGELOG.md>
- <https://github.com/abhinav/git-spice/blob/main/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, ~/.config/git/config, /etc/gitconfig
## 其他软件包管理器记录

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


## Combined YAML source

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


## 来源

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