在我痛苦的让armbian拉了半天源码之后我才发现armbian自带对于mirror的配置。。。。
仅仅需要先运行一遍./compile.sh
,然后你就能看见目录下多了一个userpatches
目录
然后vim userpatches/config-default.conf
,并在结尾添加以下行:
MAINLINE_MIRROR="tuna"
DOWNLOAD_MIRROR="china"
好了,所有能换的源都换成清华源了
如果你github
的clone速度也是时断时续的话可以试试fastgit,至少还能有点速度
简单的使用方法就是
git config --global url."https://hub.fastgit/".insteadOf "https://github/"
git config protocol.https.allow always