# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/git-vendor>
- **版本:** 1.3.0
- **来源摘要:** Command for managing git vendored dependencies
- **主页:** <https://brettlangdon.github.io/git-vendor>
- **仓库:** <https://github.com/brettlangdon/git-vendor>
- **上游文档:** <https://brettlangdon.github.io/git-vendor>
- **许可证:** MIT
- **源码归档:** <https://github.com/brettlangdon/git-vendor/archive/refs/tags/v1.3.0.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- git-vendor (cli)
- git-vendor (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.3.0
- 本地数据: OK
- 上游仓库: https://github.com/brettlangdon/git-vendor
- 检测到的最新版本: v1.3.0 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

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

## 源数据库详情

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

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

- 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


## 相关链接

- [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.
- [maven](https://pkg.so/zh-hans/brew/maven/) - Shares pkgdb curated category or tags: cli, dependency-management, developer-tools.
- [git-lfs](https://pkg.so/zh-hans/brew/git-lfs/) - Shares pkgdb curated category or tags: cli, developer-tools, git-extension.
- [gradle](https://pkg.so/zh-hans/brew/gradle/) - Shares pkgdb curated category or tags: cli, dependency-management, developer-tools.
- [poetry](https://pkg.so/zh-hans/brew/poetry/) - Shares pkgdb curated category or tags: cli, dependency-management, developer-tools.
- [pipenv](https://pkg.so/zh-hans/brew/pipenv/) - Shares pkgdb curated category or tags: cli, dependency-management, developer-tools.
- [swift-sh](https://pkg.so/zh-hans/brew/swift-sh/) - Shares pkgdb curated category or tags: cli, dependency-management, developer-tools.
- [sbt](https://pkg.so/zh-hans/brew/sbt/) - Shares pkgdb curated category or tags: cli, dependency-management, developer-tools.
- [luarocks](https://pkg.so/zh-hans/brew/luarocks/) - Shares pkgdb curated category or tags: cli, dependency-management, developer-tools.
- [git-machete](https://pkg.so/zh-hans/brew/git-machete/) - Package names and metadata indicate a similar tool family. Shared terms: cli, developer, developer-tools, extension, git.
- [git-url-sub](https://pkg.so/zh-hans/brew/git-url-sub/) - Package names and metadata indicate a similar tool family. Shared terms: cli, developer, developer-tools, extension, git.

## 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
- 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
