# 使用 Homebrew, pacman, winget 安装 git-grab

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install git-grab
```

  证据: local Homebrew formula metadata

### Linux

- pacman (92%):

```sh
sudo pacman -S git-grab
```

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

### Windows

- winget (92%):

```sh
winget install --id wezm.git-grab -e
```

  证据: Windows Package Manager source index: wezm.git-grab from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:git-grab
- **软件包管理器:** Homebrew
- **版本:** 4.0.1
- **来源摘要:** Clone a git repository into a standard location organised by domain and path
- **主页:** <https://codeberg.org/wezm/git-grab>
- **最后更新:** 2026-07-07T05:14:48Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- git-grab (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

git-grab is a Rust command-line tool that clones Git repositories into a standard source tree organized by domain and path. Its default home is `~/src`, with `GRAB_HOME` or `--home` available for users who prefer another root.

### 项目历史

The project began in 2021 and released an initial 0.1.1 build shortly after its GitHub repository and crates.io package appeared. The README describes it as inspired by John Graham-Cumming's `grab`, but narrowed to Git rather than multiple version-control systems and designed to let Git itself provide clone progress and behavior.

The GitHub README later marked the repository as moved to Codeberg. Releases through the 4.x line kept the packaged Rust implementation available while the canonical project home shifted away from GitHub.

### 采用历史

git-grab found a small audience among developers who like deterministic `~/src/host/path` clone layouts. Its README lists package-manager availability in Arch Linux, Homebrew, and Chimera Linux, and the crate page records its distribution through the Rust package ecosystem.

### 使用方式

Practitioners run `git grab github.com/wezm/git-grab` or pass any URL accepted by Git, with optional clipboard and copy-path helpers. Because it installs as `git-grab`, Git can invoke it as `git grab`, making it feel like a native Git subcommand.

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

git-grab is a compact example of a packageable personal workflow convention: it standardizes where clones land, but delegates actual cloning to Git and keeps the command small.

### 时间线

- 2021: Repository and crates.io package appeared.
- 2021: 0.1.1 initial release shipped.
- 2022: 1.0.0 release marked the first stable line.
- 2026: 4.0.x releases preceded the public move notice to Codeberg.

### Related projects

- git-grab is related to `grab` by John Graham-Cumming, `git-get`, GitHub CLI aliases, and local source-tree conventions used by Go and Rust developers.

### 来源

- <https://codeberg.org/wezm/git-grab>
- <https://crates.io/crates/git-grab>
- <https://formulae.brew.sh/formula/git-grab>
- <https://github.com/wezm/git-grab>
- <https://github.com/wezm/git-grab/blob/main/README.md>
- <https://github.com/wezm/git-grab/releases>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- pacman - git-grab - 4.0.1-3: normalized package name match | Arch Linux sync databases: git-grab from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A tool to clone git repositories to a standard location organised by domain and path | https://github.com/wezm/git-grab
- winget - wezm.git-grab: normalized package name match | Windows Package Manager source index: wezm.git-grab from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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