【发布时间】:2018-02-06 09:21:27
【问题描述】:
我正在研究 Android 源代码,我使用镜像来加快同步时间。
$ mkdir mirror
$ cd mirror
$ repo init branchA --mirror
$ repo sync
然后,我每次需要同步branchA的时候就可以使用这个镜像了。
$ repo init branchA --reference=/.../mirror
$ repo sync
但是现在,我有一个问题,我还有其他与分支 A 相关的分支。例如,branchB 基于branchA,banchC 基于branchB。在这种情况下,我应该需要三个不同的镜像吗?
如果我只同步branchC的镜像,我可以用这个镜像来同步branchA和branchB吗?
如果我只同步branchA的镜像,我可以用这个镜像来同步branchB和branchC吗?
【问题讨论】:
标签: android git branch mirror repo