# git-subrepo を Homebrew, apt, Nix, zypper でインストール

git-subrepo のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

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

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install git-subrepo
```

  証拠: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install git-subrepo
```

  証拠: Debian stable package indexes: git-subrepo from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

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

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

- zypper (92%):

```sh
sudo zypper install git-subrepo
```

  証拠: openSUSE Tumbleweed package metadata: git-subrepo from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## パッケージ情報

- **パッケージキー:** brew:git-subrepo
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/git-subrepo>
- **バージョン:** 0.4.9
- **ソース概要:** Git Submodule Alternative
- **ホームページ:** <https://github.com/ingydotnet/git-subrepo>
- **リポジトリ:** <https://github.com/ingydotnet/git-subrepo>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://github.com/ingydotnet/git-subrepo/archive/refs/tags/0.4.9.tar.gz>
- **最終更新:** 2026-06-22T14:03:31-07:00
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- git-subrepo (cli)
- git-subrepo (エイリアス)

## 依存関係

- bash

## ビルド依存関係

- gnu-sed

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 all

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 0.4.9
- マネージャ更新日: 2026-06-22
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/ingydotnet/git-subrepo
- 検出された最新: 0.4.9 (最新)
## プロジェクトの歴史と使われ方

git-subrepo is a Git extension for embedding external repositories into subdirectories while avoiding many workflow problems associated with submodules and subtrees.

### プロジェクトの歴史

The repository began in 2013 and framed git-subrepo as a solid alternative to Git submodule and subtree workflows. Its introductory documentation argues that users, collaborators, and repository owners have different needs, and that submodules especially impose knowledge and synchronization burdens on people who only want to clone and use a project.

The design stores subrepository metadata in a .gitrepo file inside the subdirectory, squashes pulls into the mainline history, and keeps refs for subrepo fetch and push workflows. A major 0.4.0-era redesign in 2018 shifted implementation details toward merge and rebase methods, with later 0.4.x releases improving testing, shell compatibility, path handling, Git version behavior, and completion scripts.

### 採用の歴史

git-subrepo serves a persistent niche: projects that want vendored source trees with upstream synchronization but do not want users to run git submodule update. Its package-manager presence in Homebrew, Debian, Nix, and openSUSE-style packaging gives maintainers a packaged alternative for teams that reject Git submodules but still need upstream push and pull operations.

### 使われ方

Practitioners clone an external repository into a subdirectory, initialize an existing subdirectory as a subrepo, pull upstream updates, push local subdirectory changes back, inspect status, clean metadata refs, and rely on .gitrepo to mark and configure each embedded repository.

### パッケージ好きにとっての重要性

git-subrepo is important in package-maintenance culture because it addresses the recurring vendor-versus-submodule choice. It favors normal clone behavior for downstream users while preserving enough metadata for maintainers to synchronize embedded code with upstream projects.

### タイムライン

- 2013: First public commit appeared in the GitHub repository.
- 2015: 0.2.x and 0.3.0 tags marked early public releases.
- 2018: 0.4.0 release documented a redesign around merge and rebase methods.
- 2024: 0.4.7 through 0.4.9 releases included compatibility and packaging fixes.

### Related projects

- The project's own documentation compares it directly with git-submodule and git-subtree, and also discusses subtree merge strategies as related Git practice.

### ソース

- <https://formulae.brew.sh/formula/git-subrepo>
- <https://github.com/ingydotnet/git-subrepo>
- <https://github.com/ingydotnet/git-subrepo/blob/master/Changes>
- <https://github.com/ingydotnet/git-subrepo/blob/master/Intro.pod>
- <https://github.com/ingydotnet/git-subrepo/blob/master/ReadMe.pod>
- <https://github.com/ingydotnet/git-subrepo/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-subrepo
- **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

## 他のパッケージマネージャ記録

- Debian apt - git-subrepo - 0.4.9-2: normalized package name match | Debian stable package indexes: git-subrepo from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Alternative to git-submodule(1) and git-subtree(1) | https://github.com/ingydotnet/git-subrepo
- Nix - git-subrepo: normalized package name match | nixpkgs package indexes: pkgs/by-name/gi/git-subrepo/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- zypper - git-subrepo - 0.4.6-2.5: normalized package name match | openSUSE Tumbleweed package metadata: git-subrepo from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Git Submodule Alternative | https://github.com/ingydotnet/git-subrepo
- zypper - git-subrepo-bash-completion - 0.4.6-2.5: normalized package name match | openSUSE Tumbleweed package metadata: git-subrepo-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Bash completion for git-subrepo | https://github.com/ingydotnet/git-subrepo
- zypper - git-subrepo-zsh-completion - 0.4.6-2.5: normalized package name match | openSUSE Tumbleweed package metadata: git-subrepo-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | ZSH completion for git-subrepo | https://github.com/ingydotnet/git-subrepo


## 関連リンク

- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [bash](https://pkg.so/ja/brew/bash/) - Runtime dependency declared by Homebrew.
- [gnu-sed](https://pkg.so/ja/brew/gnu-sed/) - Build dependency declared by Homebrew.
- [libgit2](https://pkg.so/ja/brew/libgit2/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [git-lfs](https://pkg.so/ja/brew/git-lfs/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [lazygit](https://pkg.so/ja/brew/lazygit/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [git-gui](https://pkg.so/ja/brew/git-gui/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [tig](https://pkg.so/ja/brew/tig/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [hub](https://pkg.so/ja/brew/hub/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [repo](https://pkg.so/ja/brew/repo/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [git-svn](https://pkg.so/ja/brew/git-svn/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [git-branchless](https://pkg.so/ja/brew/git-branchless/) - Package names and metadata indicate a similar tool family. Shared terms: cli, control, developer, developer-tools, git.
- [git-cinnabar](https://pkg.so/ja/brew/git-cinnabar/) - Package names and metadata indicate a similar tool family. Shared terms: cli, control, developer, developer-tools, git.
- [git-series](https://pkg.so/ja/brew/git-series/) - Package names and metadata indicate a similar tool family. Shared terms: cli, control, developer, developer-tools, git.

## Combined YAML source

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