For many reasons (such as Firewall), you can’t clone from remote server’s git
port(by default: 9418
) correctly. For example:
# git clone git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux -b perf/core
Cloning into 'linux'...
From the captured packet:
You can see the TCP
connection is established, then no any response! You can switch to https
or http
protocol, it may save your life:
# git clone https://git.kernel.org/pub/scm/linux/kernel/git/acme/linux -b perf/core
Cloning into 'linux'...
POST git-upload-pack (gzip 25015 to 12570 bytes)
remote: Counting objects: 5287534, done.
......
Please refer the discussion here.