V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
programMrxu
V2EX  ›  问与答

国内拉取 GitHub 网路慢

  •  
  •   programMrxu · 1 天前 · 1079 次点击
    在拉取代码的时候,由于网络问题,会导致拉代码的时候速度特别慢,是 40 kib/s ,我使用小火箭打开代理,但是会失败。大家平时都是这么拉取代码的
    第 1 条附言  ·  11 小时 4 分钟前
    已经处理完,使用了 clash 开启了 tun 模式。 [之前用小火箭,没找到 tun] 感谢各位大佬!!!
    10 条回复    2025-09-22 08:39:06 +08:00
    donaldturinglee
        1
    donaldturinglee  
       23 小时 59 分钟前   ❤️ 1
    你让 git 走代理不就好了,不然你就开 TUN
    565656
        2
    565656  
       23 小时 57 分钟前   ❤️ 1
    域名后缀 github.com proxy
    stinkytofux
        3
    stinkytofux  
       23 小时 45 分钟前   ❤️ 1
    现在国内网络已经劣化的不翻墙无法正常使用的地步, 尤其是计算机相关的行业. github.com 肯定是走代理的.
    sunny352787
        4
    sunny352787  
       23 小时 35 分钟前   ❤️ 1
    https://gist.github.com/coin8086/7228b177221f6db913933021ac33bb92

    按这个说明设置.ssh/config ,添加 ProxyCommand 试试
    sir283
        5
    sir283  
       23 小时 18 分钟前 via Android   ❤️ 1
    猫咪以管理员权限运行,然后拉代码,即可成功。
    v1
        6
    v1  
       23 小时 12 分钟前   ❤️ 1
    自建 git-proxy
    zaunist
        7
    zaunist  
       21 小时 20 分钟前   ❤️ 1
    在 git 的 config 中设置端口为 443 来试试看,比如像我这样:

    Host github.com
    Hostname ssh.github.com
    Port 443
    User git
    itechify
        8
    itechify  
    PRO
       21 小时 11 分钟前   ❤️ 1
    huijiewei
        9
    huijiewei  
       20 小时 37 分钟前   ❤️ 1
    git config --global http.https://github.com.proxy socks5h://127.0.0.1:1080
    wdssmq
        10
    wdssmq  
       12 小时 12 分钟前   ❤️ 1
    先试试 host 方案:
    https://github.com/521xueweihan/GitHub520

    对于 win 系统,设置 ssh 代理的姿势如下:

    Host github.com
    HostName github.com
    User git
    ProxyCommand "C:\Program Files\Git\mingw64\bin\connect.exe" -S 127.0.0.1:10808 %h %p
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2893 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 12:52 · PVG 20:52 · LAX 05:52 · JFK 08:52
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.