使用局域网直接从gitea上抓取代码
repo init -u http://git.abitacc.com/abitacc/manifest.git -m localhost.xml -b main --no-clone-bundle --no-tags --no-repo-verify --config-name
repo sync --no-tags --no-clone-bundle
从公网直接从gitea上抓取代码
repo init -u http://git.abitacc.com/abitacc/manifest.git -m default.xml -b main --no-clone-bundle --no-tags --no-repo-verify --config-name
repo sync --no-tags --no-clone-bundle
repo init 命令在执行时,首先会下载或更新 repo 工具本身,其默认来源是 Google 的服务器 (gerrit.googlesource.com)。每次都从外部网络获取,会增加代理的流量消耗。参考如下方法,可以优化减少不必要的网络代理依赖: