# 使用 Homebrew, apk, MacPorts, Nix, pacman, scoop 安装 git-branchless

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install git-branchless
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install git-branchless
```

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

### Linux

- apk (92%):

```sh
sudo apk add git-branchless
```

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

- Nix (92%):

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

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

- pacman (92%):

```sh
sudo pacman -S git-branchless
```

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

### Windows

- Scoop (92%):

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

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

## 软件包事实

- **软件包键:** brew:git-branchless
- **软件包管理器:** Homebrew
- **版本:** 0.11.1
- **来源摘要:** High-velocity, monorepo-scale workflow for Git
- **主页:** <https://github.com/arxanas/git-branchless>
- **仓库:** <https://github.com/arxanas/git-branchless>
- **最后更新:** 2026-06-22T14:03:30-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- git-branchless (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

git-branchless is a Rust suite of Git workflow tools for undo, smart logs, commit-stack manipulation, restacking, syncing, and fast monorepo-scale history operations.

### 项目历史

The repository opened in 2020 and grew around a branchless workflow idea: users can commit directly, treat branches as optional labels, and manipulate commit graphs without fear of losing work. The README presents the tool as compatible with branches while adding undo, smartlog, restack, sync, move, next, prev, and interactive switch commands.

The design goals describe git-branchless as an incremental improvement path for Git users and a test bed for workflows later explored by Jujutsu. Its emphasis is practical rather than academic: reduce Git complexity, increase developer velocity, and keep commands fast enough for very large repositories.

### 采用历史

git-branchless became one of the better-known modern Git workflow experiments. The project documents package-manager installation, Cargo installation, Git hooks, shell alias integration, discussions, Discord, and a user survey, and it benchmarks ideas against large repositories such as Linux and Mozilla's gecko-dev.

Its related-tools page places it in the same ecosystem as Stacked Git, git-stack, git-ps, Jujutsu, Sapling, git-absorb, git-autofixup, and git-revise, making it part of the broader move toward stacked-diff and mutable-history workflows.

### 使用方式

Practitioners install the executable, run git branchless init inside each repository, and then use git sl for a smart log, git undo for repository-level undo, git restack to repair abandoned descendants, git sync to rebase local stacks, and git move to manipulate subtrees of commits without checking them out.

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

For package maintainers, git-branchless is notable because it ships a Rust CLI with Git hook integration, Cargo distribution, packages across several ecosystems, and commands that intentionally wrap or augment ordinary Git rather than replacing the repository format.

### 时间线

- 2020: Repository created.
- 2021: Public 0.x tags began with v0.1.0 and expanded through frequent 0.3 releases.
- 2024: v0.10.0 continued the pre-1.0 release line.
- 2026: v0.11.1 was published in the same 0.x series.

### Related projects

- Related and adjacent tools include Jujutsu, Sapling, Stacked Git, git-stack, Git Patch Stack, git-absorb, git-autofixup, git-revise, Git itself, and large monorepo workflows.

### 来源

- <https://api.github.com/repos/arxanas/git-branchless>
- <https://formulae.brew.sh/formula/git-branchless>
- <https://github.com/arxanas/git-branchless>
- <https://github.com/arxanas/git-branchless/releases>
- <https://github.com/arxanas/git-branchless/wiki>
- <https://github.com/arxanas/git-branchless/wiki/Design-goals>
- <https://github.com/arxanas/git-branchless/wiki/Installation>
- <https://github.com/arxanas/git-branchless/wiki/Related-tools>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Nix - git-branchless: normalized package name match | nixpkgs package indexes: pkgs/by-name/gi/git-branchless/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - git-branchless - 0.10.0-r2: normalized package name match | Alpine Linux edge package indexes: git-branchless from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Suite of tools to help you visualize, navigate, manipulate, and repair your commit graph | https://github.com/arxanas/git-branchless
- apk - git-branchless-doc - 0.10.0-r2: normalized package name match | Alpine Linux edge package indexes: git-branchless-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Suite of tools to help you visualize, navigate, manipulate, and repair your commit graph (documentation) | https://github.com/arxanas/git-branchless
- pacman - git-branchless - 0.11.1-2: normalized package name match | Arch Linux sync databases: git-branchless from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | High-velocity monorepo-scale workflow for Git | https://github.com/arxanas/git-branchless
- MacPorts - git-branchless: normalized package name match | MacPorts ports tree: devel/git-branchless/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/git-branchless: normalized package name match | Scoop official bucket manifest trees: bucket/git-branchless.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Combined YAML source

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