I try to clone a Linux
branch from git://git.kernel.org
to local machine:
# git clone git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux -b perf/core
Cloning into 'linux'...
But there is no response. Use the tcpdump
and Wireshark
to check the captured packets:
We can see the
TCP
connection was established. But after client sent request using git smart protocol
, there was no any response.
Could anyone give some clues?
Update:
(1) According to @MariaInesParnisari suggestion, using --verbose
flag, but it doesn't show more information:
# git clone git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux -b perf/core --verbose
Cloning into 'linux'...
Looking up git.kernel.org ... done.
Connecting to git.kernel.org (port 9418) ... 147.75.110.187 done.
(2) Change to https
protocol, it worked:
# git clone https://git.kernel.org/pub/scm/linux/kernel/git/acme/linux -b perf/core --verbose
Cloning into 'linux'...
POST git-upload-pack (gzip 25015 to 12570 bytes)
remote: Counting objects: 5287534, done.
remote: Compressing objects: 100% (807310/807310), done.
I never managed to clone from work using the git protocol: it uses the special port 9418, which is always blocked.
Only https is working/allowed, git and ssh are usually blocked (for outbound connections, since ssh is allowed for servers within the intranet)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.