执行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/*


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM