问题:
repo init -u git@git.iris-view.com:systems/project/iris/manifest.git -b develop
Command 'repo' not found, but can be installed with:
sudo apt install repo
解决:/.bashrc 配置文件有问题
export PATH=/home/username:$PATH
repo下载
curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -o repo
chmod +x repo
repo更新
repo的运行过程中会尝试访问官方的git源更新自己,如果想使用tuna的镜像源进行更新,可以将如下内容复制到你的~/.bashrc里
export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/'
export PATH=/home/username:$PATH
并重启终端模拟器。
下载代码
mkdir aaa
cd aaa
repo init -u git@git.xxxxxxxxx.com:systems/project/aaa/manifest.git -b develop
之后在aaa文件夹里:repo sync 就把代码下来了。