相关命令可以参考 Repo 工具使用介绍——Gitee
repo init --repo-url=https://mirrors.tuna.tsinghua.edu.cn/git/git-repo --repo-rev= -u https://cnb.cool/smk3h/Alpha/alpha-manifests -b main -m imx6ull_dev.xml
# CNB本地测试
repo init --repo-url=https://mirrors.tuna.tsinghua.edu.cn/git/git-repo --repo-rev= -u file:///workspace -b main -m imx6ull_dev.xml
【参数解析】
--repo-url:指定 repo 工具的下载地址--repo-rev=:指定 repo 工具的版本(空值表示使用最新版本)-u:指定清单仓库的 URL-b:指定清单仓库的分支-m:指定清单文件的名称repo sync -c -j4
【参数解析】
-c:仅同步当前分支-j4:使用 4 个并行任务进行同步(提高速度)同步完成后,所有项目仓库会处于游离分支(detached HEAD)状态。需要检出对应的分支:
repo start main --all
【参数解析】
main:分支名称,与清单文件中指定的 revision 一致--all:对所有项目仓库执行操作