“回购同步”是否等效于“ git远程更新&& git rebase原始/分支”?

问题描述 投票:2回答:1

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存储库的工具,如果清单在远程存储库(上游)中发生更改,会发生什么?
  • 例如一个新的存储库添加到manifest.xml文件中,reporepo 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到底是如何工作的吗?

git android-source repo
1个回答
0
投票

此答案基于我从您在问题中提到的repo sync的理解:

© www.soinside.com 2019 - 2024. All rights reserved.