repo sync
文档中指出:
repo sync
这意味着我成功If the project has been synchronized before, then repo sync is equivalent to:
git remote update
git rebase origin/branch
where branch is the currently checked-out branch in the local project directory. If the local branch isn't tracking a branch in the remote repository, then no synchronization occurs for the project.
一次之后就可以使用
repo init && repo sync
为了获得与$ repo forall -c git update
$ repo forall -c git checkout -b $REPO_RREV $REPO_REMOTE/$REPO_RREV
$ repo forall -c git pull $REPO_REMOTE $REPO_RREV
相同的结果。
我担心以下问题:
repo sync
是在manifest.xml文件的帮助下管理多个git存储库的工具,如果清单在远程存储库(上游)中发生更改,会发生什么?repo
与repo sync
等效吗? git remote update && git rebase origin/branch
是否也更新manifest.xml文件,然后提取新添加的存储库?因为如果是这种情况,那么repo sync
显然不等于repo sync
。repo forall -c git remote update && repo forall -c git rebase origin/branch
是否等于repo sync
或文档缺少某些内容?从这个角度来看,有人可以澄清一下git remote update && git rebase origin/branch
到底是如何工作的吗?
此答案基于我从您在问题中提到的repo sync
的理解: