【发布时间】:2016-07-08 15:25:00
【问题描述】:
我在不同的存储库中有多个项目:
tools
thirdparty
shared
├──Common
├──Exceptions
multimedia
├──VolumeControl
├──VideoRenderer
android
├──Audio
例如android依赖shared/Common、shared/Exceptions、tools、thirdparty和多媒体/VolumeControl。
我试过了:
- 子模块:https://git-scm.com/book/en/v2/Git-Tools-Submodules
- 稀疏结帐:http://jasonkarns.com/blog/subdirectory-checkouts-with-git-sparse-checkout/
但是,它们都在 android 文件夹中检出或引入多媒体文件夹。相反,我希望它像:
android
├──Audio
├──VolumeControl (brought in from multimedia)
我该如何做到这一点?
注意:我曾经在 svn 中使用 lockexterns 来完成此操作。
【问题讨论】:
标签: git git-submodules svn-externals git-sparse-checkout