gpt4 book ai didi

repo - 如何使用 Android repo 工具检查现有功能分支

转载 作者:行者123 更新时间:2023-12-03 09:04:05 25 4
gpt4 key购买 nike

一位同事使用 repo start 创建了功能分支 thebranch。现在我想检查这个分支并对其进行处理。我试试这个:

repo init -u git@gitserver:manifest.git -m all.xml
repo sync
repo branches # Responds "(no branches)"
repo checkout thebranch # Responds "error: no project has branch thebranch"

如何查看其他人使用 repo start 启动的功能分支?

最佳答案

转到每个存储库检查功能分支,从而设置跟踪分支:

repo forall -p -c git checkout thebranch

-p 选项表示“在输出之前显示项目标题”,并且还进行分页,并且可以省略。

现在您可以进行repo checkout:

repo checkout thebranch

关于repo - 如何使用 Android repo 工具检查现有功能分支,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48511221/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com