未验证 提交 00c1389e 编写于 作者: A Austin 提交者: Gitee

update zh-cn/device-dev/faqs/faqs-environment-setup.md.

Signed-off-by: NAustin <liaozhiqi7@huawei.com>
上级 36617540
...@@ -227,24 +227,24 @@ ...@@ -227,24 +227,24 @@
``` ```
### 如何将下载好的源码升级为其他分支源码 ### 如何将下载好的源码升级为其他分支源码
**场景描述** - **场景描述**
当您的环境中已有下载好的OpenHarmony源码,需要将其升级为其他分支(例如Master)源码时,可按照如下步骤进行操作。 当您的环境中已有下载好的OpenHarmony源码,需要将其升级为其他分支(例如Master)源码时,可按照如下步骤进行操作。
**操作方法** - **操作方法**
1. 进入现有OpenHarmony根目录。 1. 进入现有OpenHarmony根目录。
请注意该目录下包含一个隐藏目录.repo,如没有此隐藏目录,请重新解压获取的源码包,以获取完整的源码内容。 请注意该目录下包含一个隐藏目录.repo,如没有此隐藏目录,请重新解压获取的源码包,以获取完整的源码内容。
2. 使用repo init命令重新初始化源码库信息。 2. 使用repo init命令重新初始化源码库信息。
其中,branch表示分支名称,例如master、OpenHarmony-3.2-Beta3等。 其中,branch表示分支名称,例如master、OpenHarmony-3.2-Beta3等。
```shell ```shell
repo init -u https://gitee.com/openharmony/manifest -b branch --no-repo-verify repo init -u https://gitee.com/openharmony/manifest -b branch --no-repo-verify
``` ```
3. 下载更新源码文件。 3. 下载更新源码文件。
```shell ```shell
repo sync -c repo sync -c
...@@ -258,7 +258,7 @@ ...@@ -258,7 +258,7 @@
repo forall -c 'git reset --hard;git clean -fdx' repo forall -c 'git reset --hard;git clean -fdx'
``` ```
4. 执行prebuilts脚本,安装编译器及二进制工具。 4. 执行prebuilts脚本,安装编译器及二进制工具。
```shell ```shell
bash build/prebuilts_download.sh bash build/prebuilts_download.sh
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册