# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/git-grab>
- **版本:** 4.0.1
- **来源摘要:** Clone a git repository into a standard location organised by domain and path
- **主页:** <https://codeberg.org/wezm/git-grab>
- **上游文档:** <https://codeberg.org/wezm/git-grab>
- **许可证:** Apache-2.0 OR MIT
- **源码归档:** <https://static.crates.io/crates/git-grab/git-grab-4.0.1.crate>
- **最后更新:** 2026-07-07T05:14:48Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- git-grab (cli)
- git-grab (别名)

## 构建依赖

- rust

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 4.0.1
- 管理器更新时间: 2026-07-07
- 本地数据: OK
- 上游仓库: https://codeberg.org/wezm/git-grab
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** git-grab
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- 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


## 相关链接

- [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.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [git-get](https://pkg.so/zh-hans/brew/git-get/) - Shares pkgdb curated category or tags: cli, clone, developer-tools, git, repository-management.
- [gitui](https://pkg.so/zh-hans/brew/gitui/) - Shares pkgdb curated category or tags: cli, developer-tools, git, rust.
- [ghq](https://pkg.so/zh-hans/brew/ghq/) - Shares pkgdb curated category or tags: cli, developer-tools, git, repository-management.
- [repo](https://pkg.so/zh-hans/brew/repo/) - Shares pkgdb curated category or tags: cli, developer-tools, git, repository-management.
- [onefetch](https://pkg.so/zh-hans/brew/onefetch/) - Shares pkgdb curated category or tags: cli, developer-tools, git, rust.
- [mergiraf](https://pkg.so/zh-hans/brew/mergiraf/) - Shares pkgdb curated category or tags: cli, developer-tools, git, rust.
- [git-absorb](https://pkg.so/zh-hans/brew/git-absorb/) - Shares pkgdb curated category or tags: cli, developer-tools, git, rust.
- [gitu](https://pkg.so/zh-hans/brew/gitu/) - Shares pkgdb curated category or tags: cli, developer-tools, git, rust.
- [git-pages](https://pkg.so/zh-hans/brew/git-pages/) - Package names and metadata indicate a similar tool family. Shared terms: cli, developer, developer-tools, git.
- [git-pages-cli](https://pkg.so/zh-hans/brew/git-pages-cli/) - Package names and metadata indicate a similar tool family. Shared terms: cli, developer, developer-tools, git.

## 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
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
