执行git pull命令报告"fatal: early EOF fatal: index-pack failed error: Could not fetch origin fatal: read error: Connection timed out"如何处理?

答: 改变仓库的地址(<source code dir>/.git/config中的[remote "origin"]),如:

    .git/config中的[remote "origin"]如下:

    [remote "origin"]

        url= git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git

        fetch = +refs/heads/*:refs/remotes/origin/*

    修改为:

     [remote "origin"]

        url= https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git

        fetch = +refs/heads/*:refs/remotes/origin/*

原文地址:https://www.cnblogs.com/dakewei/p/12582324.html