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 · 2023-09-19 15:27:45 +08:00 · 1618 views
    This topic created in 734 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  
       2023-09-19 15:30:50 +08:00
    DNS 查询很慢? lookup 域名试试
    chen0520
        2
    chen0520  
    OP
       2023-09-19 15:45:59 +08:00
    @m1nm13 现在好像又好了,有点奇怪,如果是 dns 的问题,有什么解决方式呢?
    m1nm13
        3
    m1nm13  
       2023-09-19 16:35:21 +08:00
    @chen0520 #2 手动指定 dns 服务器?如果你的网关没有劫持 dns 的话,这样应该是有效的.如果会劫持的话.那....可能只能 DOH 了
    grilesshahani
        4
    grilesshahani  
       2023-09-19 19:16:38 +08:00
    没配置加速吗?

    --------
    首先自备 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  
       2023-09-19 19:19:06 +08:00   ❤️ 2
    @grilesshahani #4 他拉 coding 的加速个毛?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Tools   ·   5070 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 07:44 · PVG 15:44 · LAX 00:44 · JFK 03:44
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.