執行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