我創建鏡像回購工作空間是這樣的:如何更新鏡像回購工作區?
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的存儲庫中。因此,重新克隆非常耗時。