Automic VaultAutomic Vault

brew

使用 Homebrew, apt, Nix, zypper 安装 git-subrepo

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install git-subrepo

local Homebrew formula metadata

Linux

Debian apt已验证 · 92%
sudo apt install git-subrepo

Debian stable package indexes · git-subrepo · 来源: deb.debian.org

Nix已验证 · 92%
nix profile install nixpkgs#git-subrepo

nixpkgs package indexes · pkgs/by-name/gi/git-subrepo/package.nix · 来源: api.github.com

openSUSE zypper已验证 · 92%
sudo zypper install git-subrepo

openSUSE Tumbleweed package metadata · git-subrepo · 来源: download.opensuse.org

概览

软件包摘要

Git Submodule Alternative

命令和别名

  • git-subrepo

历史

项目历史与用法

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.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 1 个平台目标。
  • 安装时包含 1 个运行时依赖。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
git-subrepocli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本0.4.9
管理器更新时间2026-06-22
本地数据OK
上游当前
检测到的最新版本0.4.9

https://github.com/ingydotnet/git-subrepo

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:git-subrepo
版本0.4.9
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/git-subrepo
主页https://github.com/ingydotnet/git-subrepo
仓库https://github.com/ingydotnet/git-subrepo
上游文档https://github.com/ingydotnet/git-subrepo#readme
许可证MIT
源码归档https://github.com/ingydotnet/git-subrepo/archive/refs/tags/0.4.9.tar.gz
最后更新2026-06-22T14:03:31-07:00
Pulseupdated
依赖bash
构建依赖gnu-sed
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegit-subrepo
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

git-subrepo 0.4.9-2

Alternative to git-submodule(1) and git-subtree(1)

https://github.com/ingydotnet/git-subrepo

sudo apt install git-subrepo
  • Section: vcs
  • Architecture: amd64
  • 1 依赖
  • normalized package name match
  • 匹配方式:Git Subrepo
Debian stable package indexes · deb.debian.org · Debian stable package indexes: git-subrepo from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

git-subrepo

nix profile install nixpkgs#git-subrepo
  • normalized package name match
  • 匹配方式:Git Subrepo
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/gi/git-subrepo/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
zypper95%

git-subrepo 0.4.6-2.4

Git Submodule Alternative

https://github.com/ingydotnet/git-subrepo

sudo zypper install git-subrepo
  • License: MIT
  • Category: Development/Tools/Version Control
  • Architecture: noarch
  • Source Package: git-subrepo
  • 3 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Git Subrepo
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: git-subrepo from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

git-subrepo-bash-completion 0.4.6-2.4

Bash completion for git-subrepo

https://github.com/ingydotnet/git-subrepo

sudo zypper install git-subrepo-bash-completion
  • License: MIT
  • Category: Productivity/File utilities
  • Architecture: noarch
  • Source Package: git-subrepo
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Git Subrepo
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: git-subrepo-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

git-subrepo-zsh-completion 0.4.6-2.4

ZSH completion for git-subrepo

https://github.com/ingydotnet/git-subrepo

sudo zypper install git-subrepo-zsh-completion
  • License: MIT
  • Category: Productivity/File utilities
  • Architecture: noarch
  • Source Package: git-subrepo
  • 1 提供
  • normalized package name match
  • 匹配方式:Git Subrepo
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: git-subrepo-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment