V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
git
Pro Git
Atlassian Git Tutorial
Pro Git 简体中文翻译
GitX
cmonday
V2EX  ›  git

访问github没有问题,git clone操作却又慢又不稳定……

  •  
  •   cmonday · 2011-11-26 15:39:09 +08:00 · 15064 次点击
    这是一个创建于 4535 天前的主题,其中的信息可能已经有所发展或是发生改变。
    最后经常变成:
    fatal: The remote end hung up unexpectedlyB | 1 KiB/s
    fatal: early EOFs: 68% (193/282), 5.08 MiB
    fatal: index-pack failed
    这样

    这可如何是好?

    上面是用https的,如果用git协议直接就

    github.com[0: 207.97.227.239]: errno=Connection refused
    fatal: unable to connect a socket (Connection refused)
    8 条回复    2017-03-19 23:45:49 +08:00
    thcode
        1
    thcode  
       2011-11-26 16:32:04 +08:00
    加密链接被影响了,我在教育网就是,可以访问网站,但是不能进行clone操作,把https改成http就可以了,不过缺少安全性
    yyfearth
        2
    yyfearth  
       2011-11-26 16:55:55 +08:00
    应该是wall的问题,用http地址clone。
    注意把https改成http就应该可以了。
    直接用git协议是用ssh,连https都挂了,更不用说ssh。
    bindiry
        3
    bindiry  
       2011-11-26 16:56:50 +08:00
    在linux下的话,我用proxychains
    fanzeyi
        4
    fanzeyi  
       2011-11-26 16:56:59 +08:00
    推荐使用 SSH协议

    [email protected] 的那个.. 河南联通表示毫无问题
    cmonday
        5
    cmonday  
    OP
       2011-11-26 17:09:28 +08:00
    @thcode thx! 暂时只能这么解决了~
    另外我发现只是要文件的话,download页面也可以解决问题
    cmonday
        6
    cmonday  
    OP
       2011-11-26 17:11:19 +08:00
    @bindiry 这个好,下次也不用挂全局代理了……
    cmonday
        7
    cmonday  
    OP
       2011-11-26 17:12:25 +08:00
    @fanzeyi 就像@yyfearth 说的,SSH挂了的……
    thank you @yyfearth
    heaventear
        8
    heaventear  
       2017-03-19 23:45:49 +08:00
    其实不用这么麻烦, 挂个梯子就行, 推荐天路加速器,看他们那个命令行加速的教程,网址 https://91tianlu.com
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2909 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 12:59 · PVG 20:59 · LAX 05:59 · JFK 08:59
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.