參考部落格:Linux ubuntu repo安裝方法
mkdir ~/.bin
vim ~/.bashrc
末尾新增:
export PATH=~/.bin:$PATH
git clone https://gerrit-googlesource.lug.ustc.edu.cn/git-repo
cd git-repo
cp repo ~/.bin
chmod a+x ~/.bin/repo
mkdir ~/harmony
cd ~/harmony
mkdir .repo
cp -r git-repo ~/harmony/.repo
cd ~/harmony/.repo
mv git-repo repo
cd ~/harmony
repo init -u https://gitee.com/openharmony/manifest.git -b master --no-repo-verify
repo sync -c
ls
applications build docs drivers kernel test utils
base build.py domains foundation prebuilts third_party vendor