macOS
brew install git-subrepolocal Homebrew formula metadata
安装
brew install git-subrepolocal Homebrew formula metadata
sudo apt install git-subrepoDebian stable package indexes · git-subrepo · 来源: deb.debian.org
nix profile install nixpkgs#git-subreponixpkgs package indexes · pkgs/by-name/gi/git-subrepo/package.nix · 来源: api.github.com
sudo zypper install git-subrepoopenSUSE Tumbleweed package metadata · git-subrepo · 来源: download.opensuse.org
概览
Git Submodule Alternative
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
git-subrepo | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/ingydotnet/git-subrepo
安装元数据
| 软件包键 | 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 |
| Pulse | updated |
| 依赖 | bash |
| 构建依赖 | gnu-sed |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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-subrepogit-subrepo
nix profile install nixpkgs#git-subrepogit-subrepo 0.4.6-2.4
Git Submodule Alternative
https://github.com/ingydotnet/git-subrepo
sudo zypper install git-subrepogit-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-completiongit-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来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.