跳转至

源码获取

1. git

1.1 安装git和git-lfs

sudo apt-get install git
sudo apt install git-lfs

1.2 git初始化

git config --global user.email "邮箱"
git config --global user.name "用户名"

2. 安装码云repo工具

需要首先系统中安装curl

sudo snap install curl

2.1 下载repo

curl https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 > repo

2.2 移动repo

sudo mv repo /usr/local/bin/

2.3 修改repo权限

chmod a+x /usr/local/bin/repo

2.4 安装requests

pip install -i https://repo.huaweicloud.com/repository/pypi/simple requests

3. 通过repo下载源代码

repo init -u https://gitee.com/genkipi/manifest.git -b master --no-repo-verify -m devboard_itcast_genkipi.xml
repo sync -c
repo forall -c 'git lfs pull'