改hosts。改 /etc/ssh/ssh_config。设置git代理git config http.postBuffer 524288000 总结:3最好用,4有时候更好用。也可以使用中国的代码托管,阿里云code,gitlab,自建等。