From c171889af980cb2fc595beaee8152b9be8cbc324 Mon Sep 17 00:00:00 2001 From: duangavin123 Date: Sat, 19 Mar 2022 12:31:23 +0000 Subject: [PATCH] update zh-cn/release-notes/OpenHarmony-v3.1-beta.md. Signed-off-by: duangavin123 --- zh-cn/release-notes/OpenHarmony-v3.1-beta.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/zh-cn/release-notes/OpenHarmony-v3.1-beta.md b/zh-cn/release-notes/OpenHarmony-v3.1-beta.md index 0e2a32411b..12c8667790 100644 --- a/zh-cn/release-notes/OpenHarmony-v3.1-beta.md +++ b/zh-cn/release-notes/OpenHarmony-v3.1-beta.md @@ -45,6 +45,26 @@ ## 源码获取 +### 前提条件 + +1. 注册码云gitee账号。 +2. 注册码云SSH公钥,请参考[码云帮助中心](https://gitee.com/help/articles/4191)。 +3. 安装[git客户端](https://git-scm.com/book/zh/v2/%E8%B5%B7%E6%AD%A5-%E5%AE%89%E8%A3%85-Git)和[git-lfs](https://gitee.com/vcs-all-in-one/git-lfs?_from=gitee_search#downloading)并配置用户信息。 + + ``` + git config --global user.name "yourname" + git config --global user.email "your-email-address" + git config --global credential.helper store + ``` + +4. 安装码云repo工具,可以执行如下命令。 + + ``` + curl -s https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 > /usr/local/bin/repo #如果没有权限,可下载至其他目录,并将其配置到环境变量中 + chmod a+x /usr/local/bin/repo + pip3 install -i https://repo.huaweicloud.com/repository/pypi/simple requests + ``` + ### 通过repo获取 -- GitLab