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.
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