我创建镜像回购工作空间是这样的:如何更新镜像回购工作区?
repo init -u $url -b $branch -m $manifest --mirror
repo sync
我想更新使用不同的清单或更新的清单,然后重新同步到下拉任何新的或丢失的变化镜子。如果我尝试运行相同的init命令,它抱怨:
fatal: --mirror is only supported when initializing a new workspace.
Either delete the .repo folder in this workspace, or initialize in another location.
我想,我可以手动内.repo/manifests
取出,然后更新符号链接,.repo/manifest.xml
。如果可能的话,我想使用回购工具。
或者我可以删除整个.repo
目录,然后再次运行init命令。我避免这个,因为不幸的是我的清单文件是在一个12GB的存储库中。因此,重新克隆非常耗时。