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

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install git-graph
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add git-graph
```

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

- Nix (92%):

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

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

- pacman (92%):

```sh
sudo pacman -S git-graph
```

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

### Windows

- Scoop (92%):

```sh
scoop install extras/git-graph
```

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

## 软件包事实

- **软件包键:** brew:git-graph
- **软件包管理器:** Homebrew
- **版本:** 0.7.0
- **来源摘要:** Command-line tool to show clear git graphs arranged for your branching model
- **主页:** <https://github.com/git-bahn/git-graph>
- **仓库:** <https://github.com/git-bahn/git-graph>
- **最后更新:** 2026-07-04T16:53:43+09:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- git-graph (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

git-graph is a Rust command-line tool for rendering Git history graphs in a terminal with branch ordering based on a chosen branching model. It aims to make histories such as GitFlow easier to read than raw graph output from generic clients.

### 项目历史

The project started in late 2020 and produced a rapid sequence of early releases around text-based graph rendering, branch models, styles, and formatting. The README presents the tool as a structured graph viewer for GitFlow, simple, and custom branching models, while the manual documents model selection, styles, commit formatting, SVG output, and persistent per-repository model settings.

### 采用历史

git-graph occupies a narrower visualization niche than full terminal Git interfaces, but it has package visibility through Homebrew and crates.io. The README also points users who need an interactive terminal application to `git-igitt`, which was built on top of git-graph.

### 使用方式

Practitioners run `git-graph` inside a repository, choose a model with `--model`, set a repository's preferred model with `git-graph model`, and tune output with styles or Git-like format strings. Custom branching models live under the platform app-data directory as TOML files.

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

git-graph is package-manager interesting because it packages a specialized view of repository topology as a standalone binary rather than a large Git client. It is useful when developers want a predictable, scriptable terminal visualization aligned with their branch model.

### 时间线

- 2020: Repository created on GitHub.
- 2020: 0.1.0 release began the release series.
- 2021: 0.5.0 release followed the initial burst of graph-rendering releases.
- 2022: crates.io package appeared.
- 2025: 0.7.0 release line was packaged by Homebrew.

### Related projects

- git-graph relates to `git log --graph`, graphical Git clients, GitFlow-oriented visualization tools, and `git-igitt`, an interactive terminal application based on git-graph.

### 来源

- <https://crates.io/crates/git-graph>
- <https://formulae.brew.sh/formula/git-graph>
- <https://github.com/git-bahn/git-graph>
- <https://github.com/git-bahn/git-graph/blob/master/README.md>
- <https://github.com/git-bahn/git-graph/blob/master/docs/manual.md>
- <https://github.com/git-bahn/git-graph/releases>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Nix - git-graph: normalized package name match | nixpkgs package indexes: pkgs/by-name/gi/git-graph/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - git-graph - 0.7.0-r0: normalized package name match | Alpine Linux edge package indexes: git-graph from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Command line tool to show clear git graphs arranged for your branching model | https://github.com/git-bahn/git-graph/
- apk - git-graph-doc - 0.7.0-r0: normalized package name match | Alpine Linux edge package indexes: git-graph-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Command line tool to show clear git graphs arranged for your branching model (documentation) | https://github.com/git-bahn/git-graph/
- pacman - git-graph - 0.7.0-2: normalized package name match | Arch Linux sync databases: git-graph from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | show clear git graphs arranged following different branching model | https://github.com/mlange-42/git-graph
- Scoop - extras/git-graph: normalized package name match | Scoop official bucket manifest trees: bucket/git-graph.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1


## Combined YAML source

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