为什么会有这种诉求?
当前OpenHarmony不是很稳定,有时更新一下代码就编不过了。这时需要拉下比较稳定的tag点。
方法
1、
http://ci.openharmony.cn/dailybuilds
下载对应的镜像。找到manifest_tag.xml。

2、将xml放到工程的.repo/manifests下面

3、进入.repo/manifests目录
git add manifest_tag.xml
git commit
回到代码目录下重新repo init然后sync,执行:
repo init -m manifest_tag.xml
repo sync -c
repo forall -c 'git lfs pull'
确认是否拉取成功
可以随便进一个仓,git log看下tag点是否和xml一致。
网友评论