V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
coolair
V2EX  ›  GitHub

如何提速 GitHub?

  •  
  •   coolair · Sep 27, 2023 · 1889 views
    This topic created in 953 days ago, the information mentioned may be changed or developed.
    Windows 环境。

    很多软件在线安装,从 CMD 运行命令安装,会从 GitHub 下载一些依赖包,都是写在代码里用命令下载的。不会走我的 Clash 。

    使用 GitHub520 修改 Hosts 方式,但是一样很慢,感觉没什么效果。有没有什么好办法?
    12 replies    2023-10-08 16:41:00 +08:00
    jenlors
        1
    jenlors  
       Sep 27, 2023   ❤️ 1
    Clash Tun 模式
    Asakijz
        2
    Asakijz  
       Sep 27, 2023
    t/843383
    Asakijz
        3
    Asakijz  
       Sep 27, 2023
    bless110
        4
    bless110  
       Sep 27, 2023
    可以手动为终端设置代理,类似这种 set http_proxy=http://127.0.0.1:1080
    Yuhyeong
        5
    Yuhyeong  
       Sep 27, 2023
    git config --global url."http://ghproxy.com/https://github.com/".insteadOf "https://github.com/"
    Zaner
        6
    Zaner  
       Sep 27, 2023
    @Yuhyeong 谢谢哥!一行命令就解决了
    Yuhyeong
        7
    Yuhyeong  
       Sep 27, 2023   ❤️ 1
    @moonbeama 这是免费用的公益代理,大部分时间没事,偶尔抽风,因为用的相当于是暴力替换字符串,所以后续抽风了的话,要记得去 config 里把这个代替命令给去掉。
    这个方法的弊端是后续 pull 、push 不一定起作用
    coolair
        8
    coolair  
    OP
       Sep 27, 2023
    @Yuhyeong #5 但是有些并不是用 git 下载,而是下载 release 的包。
    Yuhyeong
        9
    Yuhyeong  
       Sep 27, 2023
    @coolair 那就没什么办法,必须走代理。#4 的就行,你梯子开了后去找你梯子的默认端口。用命令行设置就行
    NerbraskaGuy
        10
    NerbraskaGuy  
       Sep 27, 2023
    https://github.com/521xueweihan/GitHub520 我是用的这个方法,还蛮管用的
    Jirajine
        11
    Jirajine  
       Sep 27, 2023 via Android
    内网可以用 sni proxy 反代部分网站,这样不走代理的设备可以直接改 hosts 或者 dns 劫持直接加速特定网站。
    deng1xia
        12
    deng1xia  
       Oct 8, 2023
    1 楼正解,
    但是我用的是路由器跑 clash ,电脑手机无感代理
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1018 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 59ms · UTC 18:40 · PVG 02:40 · LAX 11:40 · JFK 14:40
    ♥ Do have faith in what you're doing.