# 使用 Homebrew, Nix 安装 git-vendor

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install git-vendor
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

## 软件包事实

- **软件包键:** brew:git-vendor
- **软件包管理器:** Homebrew
- **版本:** 1.3.0
- **来源摘要:** Command for managing git vendored dependencies
- **主页:** <https://brettlangdon.github.io/git-vendor>
- **仓库:** <https://github.com/brettlangdon/git-vendor>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- git-vendor (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

git-vendor is a shell Git command that wraps git subtree to add, list, update, and share vendored dependencies.

### 项目历史

Brett Langdon created the git-vendor repository in January 2016. The README explains that the tool follows the Go vendoring convention of storing dependencies under vendor/ using fully qualified project paths.

The project stayed close to git subtree. Later releases refined command behavior, including a 2022 release that added a push command through a community contribution.

### 采用历史

git-vendor spread through source installation, Homebrew, and other package-manager formulas. Its adoption niche was teams that wanted vendored source checked into a repository without relying on language-specific package managers.

### 使用方式

Practitioners use git vendor add to import a repository at a ref, git vendor list to inspect recorded source metadata, git vendor update to move a vendored dependency forward, and git vendor upstream to share changes back.

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

The tool is significant in package-management history because it captures a pre-module and cross-language vendoring pattern: source is copied into the tree, but the Git history and vendor metadata preserve where that source came from.

### 时间线

- 2016: Repository created for a git subtree-based vendoring workflow.
- 2021: v1.2.x releases refined update behavior and portability.
- 2022: v1.3.0 added a push command.

### Related projects

- git subtree, Go vendor directories, Homebrew

### 来源

- <https://brettlangdon.github.io/git-vendor>
- <https://formulae.brew.sh/formula/git-vendor>
- <https://github.com/brettlangdon/git-vendor>
- <https://github.com/brettlangdon/git-vendor/releases>
- <https://raw.githubusercontent.com/brettlangdon/git-vendor/master/README.md>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Nix - git-vendor: normalized package name match | nixpkgs package indexes: pkgs/by-name/gi/git-vendor/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-vendor.yml](https://github.com/mxcl/pkgdb/blob/main/combined/git-vendor.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
