项目场景:
使用repo init拉代码。旧版本repo。
问题描述
出现
fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
fatal: error [Errno 110] Connection timed out
原因分析:
有墙。用清华源。
解决方案:
亲测有效。
首先进入拉代码后要存储的文件夹。
cd test
echo 'export REPO_URL="https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/"'>> ~/.bashrc
source ~/.bashrc
再次repo init。测试成功。