V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
git
Pro Git
Atlassian Git Tutorial
Pro Git 简体中文翻译
GitX
chen0520
V2EX  ›  git

git pull 拉 coding 代码很慢

  •  
  •   chen0520 · Sep 19, 2023 · 2048 views
    This topic created in 963 days ago, the information mentioned may be changed or developed.

    要卡住 7-8 秒才能命令行才会继续,有可能是什么地方有问题,应该如何分析呢?

    5 replies    2023-09-19 19:19:06 +08:00
    m1nm13
        1
    m1nm13  
       Sep 19, 2023
    DNS 查询很慢? lookup 域名试试
    chen0520
        2
    chen0520  
    OP
       Sep 19, 2023
    @m1nm13 现在好像又好了,有点奇怪,如果是 dns 的问题,有什么解决方式呢?
    m1nm13
        3
    m1nm13  
       Sep 19, 2023
    @chen0520 #2 手动指定 dns 服务器?如果你的网关没有劫持 dns 的话,这样应该是有效的.如果会劫持的话.那....可能只能 DOH 了
    grilesshahani
        4
    grilesshahani  
       Sep 19, 2023
    没配置加速吗?

    --------
    首先自备 proxy 工具,然后在命令行终端里,执行如下命令
    git config --global http.proxy 'socks5h://127.0.0.1:1080'

    git config --global https.proxy 'socks5h://127.0.0.1:1080'


    PS:纯搬运天路云的 git clone 加速教程,一直用的很爽,每秒几 MB 的速度下载。原文这里 http://91tianlu.wiki/knowledgebase.php?action=displayarticle&id=11
    zoharSoul
        5
    zoharSoul  
       Sep 19, 2023   ❤️ 2
    @grilesshahani #4 他拉 coding 的加速个毛?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1532 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 49ms · UTC 16:56 · PVG 00:56 · LAX 09:56 · JFK 12:56
    ♥ Do have faith in what you're doing.