fatal: early EOF fatal: index-pack failed

后端 未结 30 1586
滥情空心
滥情空心 2020-11-22 10:51

I have googled and found many solutions but none work for me.

I am trying to clone from one machine by connecting to the remote server which is in the LAN network.

30条回答
  •  旧时难觅i
    2020-11-22 11:46

    Tangentially related and only useful in case you have no root access and manually extract Git from an RPM (with rpm2cpio) or other package (.deb, ..) into a subfolder. Typical use case: you try to use a newer version of Git over the outdated one on a corporate server.

    If git clone fails with fatal: index-pack failed without early EOF mention but instead a help message about usage: git index-pack, there is a version mismatch and you need to run git with the --exec-path parameter:

    git --exec-path=path/to/subfoldered/git/usr/bin/git clone 
    

    In order to have this happen automatically, specify in your ~/.bashrc:

    export GIT_EXEC_PATH=path/to/subfoldered/git/usr/libexec
    

提交回复
热议问题