下载代码
mkdir ksights
cd ksights
rm -rf ./.repo/ # 如此前有同步失败,需要先删除原有.repo目录;如果没有.repo目录,可以忽略此步骤
repo init -u git@github.com:ziyangfu/ksight-repo.git -b master -m default.xml
repo sync -d --fetch-submodules如果之前使用repo sync下载了代码,但没有submodule的代码,可以运行:
# 初始化后执行
repo forall -c 'git submodule update --init --recursive'