programMrxu
V2EX  ›  问与答

国内拉取 GitHub 网路慢

  •  
  •   programMrxu · Sep 21, 2025 · 3102 views
    This topic created in 428 days ago, the information mentioned may be changed or developed.
    在拉取代码的时候,由于网络问题,会导致拉代码的时候速度特别慢,是 40 kib/s ,我使用小火箭打开代理,但是会失败。大家平时都是这么拉取代码的
    Supplement 1  ·  Sep 22, 2025
    已经处理完,使用了 clash 开启了 tun 模式。 [之前用小火箭,没找到 tun] 感谢各位大佬!!!
    10 replies  •  2025-09-22 08:39:06 +08:00
    donaldturinglee
    donaldturinglee
    Sep 21, 2025❤️1
    1
    你让 git 走代理不就好了,不然你就开 TUN
    565656
    565656
    Sep 21, 2025❤️1
    2
    域名后缀 github.com proxy
    stinkytofux
    stinkytofux
    Sep 21, 2025❤️1
    3
    现在国内网络已经劣化的不翻墙无法正常使用的地步, 尤其是计算机相关的行业. github.com 肯定是走代理的.
    sunny352787
    sunny352787
    Sep 21, 2025❤️1
    4
    https://gist.github.com/coin8086/7228b177221f6db913933021ac33bb92

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

    Host github.com
    Hostname ssh.github.com
    Port 443
    User git
    itechify
    itechify
    Sep 21, 2025❤️1
    8
    huijiewei
    huijiewei
    Sep 22, 2025❤️1
    9
    git config --global http.https://github.com.proxy socks5h://127.0.0.1:1080
    wdssmq
    wdssmq
    Sep 22, 2025❤️1
    10
    先试试 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
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4414 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 08:41 · PVG 16:41 · LAX 00:41 · JFK 03:41
    ♥ Do have faith in what you're doing.