github git clone ssh协议 clone超慢解决方案,提高Github Clone速度

即使进行了fq吧但是git clone ssh协议就是慢 2kb/s你能忍,坚决不能忍。

 

github git clone ssh协议 clone超慢解决方案

151.101.72.249 global-ssl.fastly.Net
192.30.253.112 github.com

 使用这个站点进行查询https://www.ipaddress.com/

# GitHub Start
151.101.76.249 global-ssl.fastly.Net
151.101.76.249 github.global.ssl.fastly.net  
192.30.253.121 codeload.github.com
192.30.253.113 github.com
192.30.253.113 www.github.com
192.30.253.118    gist.github.com
151.101.192.133 assets-cdn.github.com
151.101.192.133 raw.githubusercontent.com
151.101.192.133 gist.githubusercontent.com
151.101.192.133 cloud.githubusercontent.com
151.101.192.133 camo.githubusercontent.com
151.101.192.133 avatars0.githubusercontent.com
151.101.192.133 avatars1.githubusercontent.com
151.101.192.133 avatars2.githubusercontent.com
151.101.192.133 avatars3.githubusercontent.com
151.101.192.133 avatars4.githubusercontent.com
151.101.192.133 avatars5.githubusercontent.com
151.101.192.133 avatars6.githubusercontent.com
151.101.192.133 avatars7.githubusercontent.com
151.101.192.133 avatars8.githubusercontent.com
52.216.80.48    github-cloud.s3.amazonaws.com
54.231.40.3     github-com.s3.amazonaws.com
52.216.20.171    github-production-release-asset-2e65be.s3.amazonaws.com
52.216.228.168    github-production-user-asset-6210df.s3.amazonaws.com
# GitHub End

 

 晚上速度200kb/s,白天就木有问题基本上2-4mb/s

 

v2.json 本地端口设置

    "inbounds": [
        {
          "port": 1086,
          "listen": "127.0.0.1",
          "protocol": "ss",//有关键词
          "sniffing": {
            "enabled": true,
            "destOverride": [
              "http",
              "tls"
            ]
          },
          "settings": {
            "auth": "noauth",
            "udp": true,
            "ip": null,
            "clients": null
          },
          "streamSettings": null
        },
        {
          "port": 1085,
          "listen": "127.0.0.1",
          "protocol": "http",
          "sniffing": {
            "enabled": true,
            "destOverride": [
              "http",
              "tls"
            ]
          }
        }
      ],

 

git clone ssh 加速设置。SSH形式

修改 ~/.ssh/config 文件(不存在则新建):

# git@github.com landv
Host github.com
  User landv
  HostName github.com
  PreferredAuthentications publickey
  IdentityFile ~/.ssh/gitlandv_rsa
   # 走 HTTP 代理
    ProxyCommand socat - PROXY:127.0.0.1:%h:%p,proxyport=1085
   # 
   # ProxyCommand nc -v -x 127.0.0.1:1080 %h %p

git clone HTTP 形式

走 HTTP 代理

git config --global http.proxy "http://127.0.0.1:8080"
git config --global https.proxy "http://127.0.0.1:8080"

取消设置

git config --global --unset http.proxy
git config --global --unset https.proxy

限定github.com

git config --global http.https://github.com.proxy http://127.0.0.1:8080
git config --global https.https://github.com.proxy http://127.0.0.1:8080

取消

git config --global --unset http.https://github.com.proxy
git config --global --unset https.https://github.com.proxy

git配置查看

 git config -l
 
posted @ 2019-08-05 11:58  landv  阅读(7069)  评论(2编辑  收藏  举报