ubuntu下github无法使用

  1. 增加缓存
git config --global http.postBuffer 524288000
  1. 修改压缩级别
git config --global core.compression -1    
  1. 可以替换 /etc/hosts下 文件, 注意IP可能发生了变化
127.0.0.1	localhost
127.0.1.1	ubuntu

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

#96.44.137.28 github.global.ssl.fastly.net
#20.205.243.166 github.com


# fetch-github-hosts begin
140.82.114.26               alive.github.com
140.82.112.25               live.github.com
185.199.108.154             github.githubassets.com
140.82.112.21               central.github.com
185.199.108.133             desktop.githubusercontent.com

185.199.108.133             camo.githubusercontent.com
185.199.110.133             github.map.fastly.net

151.101.77.194              github.global.ssl.fastly.net
20.207.73.82                gist.github.com
185.199.108.153             github.io
140.82.113.3                github.com
192.0.66.2                  github.blog
20.207.73.85                api.github.com
185.199.108.133             raw.githubusercontent.com
185.199.108.133             user-images.githubusercontent.com
185.199.108.133             favicons.githubusercontent.com
185.199.109.133             avatars5.githubusercontent.com
185.199.110.133             avatars4.githubusercontent.com
185.199.109.133             avatars3.githubusercontent.com
185.199.108.133             avatars2.githubusercontent.com
185.199.111.133             avatars1.githubusercontent.com
185.199.110.133             avatars0.githubusercontent.com
185.199.108.133             avatars.githubusercontent.com
20.207.73.88                codeload.github.com
52.216.77.204               github-cloud.s3.amazonaws.com
3.5.6.134                   github-com.s3.amazonaws.com
52.217.12.180               github-production-release-asset-2e65be.s3.amazonaws.com
52.217.191.9                github-production-user-asset-6210df.s3.amazonaws.com
52.217.233.225              github-production-repository-file-5c1aeb.s3.amazonaws.com
185.199.108.153             githubstatus.com
140.82.112.17               github.community
20.43.185.14                github.dev
140.82.113.22               collector.github.com
13.107.42.16                pipelines.actions.githubusercontent.com
185.199.108.133             media.githubusercontent.com
185.199.109.133             cloud.githubusercontent.com
185.199.110.133             objects.githubusercontent.com

185.199.108.153             assets-cdn.github.com
185.199.109.153             assets-cdn.github.com
185.199.111.153             assets-cdn.github.com


# last fetch time: 2023-03-08 11:21:13
# update url: https://hosts.gitcdn.top/hosts.txt
# fetch-github-hosts end
  1. 使用备用网站
	 git clone  https://ghproxy.com/https://github.com/armbian/config.git   
	 git clone  https://github.com/armbian/config.git     
     // 上面这两个相同效果, 下面还有一个网站
     git clone  https://ghproxy.com/https://github.com/sfjro/aufs5-standalone.git
	

参考:
镜像地址
获取IP地址

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值