Git元存储库管理器
metarepo的Python项目详细描述
Metarepo:git子模块的替代品
当git子模块不足时,Metarepo用于管理对其他git存储库的依赖性。 它的灵感来自于Google的repo工具,但是没有要求 清单要存储在它自己的存储库中,它存储在同一个存储库中。在
安装
# Install from PyPI pip3 install --upgrade metarepo # Install from git using PIP pip3 install --upgrade git+https://github.com/blejdfist/git-metarepo
使用
您可以用两种方式运行metarepo
,独立运行或使用git。两种方法都是一样的,这只是个人品味的问题。在
使用init命令创建一个初始的manifest.yml
配置
git meta init
同步存储库
git meta sync
清单结构
repos: - url: https://github.com/blejdfist/pycodegen path: tools/pycodegen track: master
Field | Explanation | Required |
---|---|---|
url | Git URL to clone | Yes |
path | Where to clone the repo | Yes |
track | What branch/tag to track | No (default: master) |
- 项目
标签: