未验证 提交 08e17345 编写于 作者: O openharmony_ci 提交者: Gitee

!11670 新增faq

Merge pull request !11670 from Austin/master
...@@ -224,4 +224,44 @@ ...@@ -224,4 +224,44 @@
``` ```
sudo apt-get remove python3-apt sudo apt-get remove python3-apt
sudo apt-get install python3-apt sudo apt-get install python3-apt
``` ```
\ No newline at end of file
### 如何将下载好的源码升级为其他分支源码
- **场景描述**
当您的环境中已有下载好的OpenHarmony源码,需要将其升级为其他分支(例如Master)源码时,可按照如下步骤进行操作。
- **操作方法**
1. 进入现有OpenHarmony根目录。
请注意该目录下包含一个隐藏目录.repo,如没有此隐藏目录,请重新解压获取的源码包,以获取完整的源码内容。
2. 使用repo init命令重新初始化源码库信息。
其中,branch表示分支名称,例如master、OpenHarmony-3.2-Beta3等。
```shell
repo init -u https://gitee.com/openharmony/manifest -b branch --no-repo-verify
```
3. 下载更新源码文件。
```shell
repo sync -c
repo forall -c 'pwd;git lfs pull'
```
如果想保持工作路径清洁,可以执行如下命令。
>![icon-note.gif](public_sys-resources/icon-caution.gif) **注意:**
>此操作会重置本地工作区,删除未被git管理的文件或目录,请谨慎操作。
```shell
repo forall -c 'git reset --hard;git clean -fdx'
```
4. 执行prebuilts脚本,安装编译器及二进制工具。
```shell
bash build/prebuilts_download.sh
```
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册