Cloning on ubuntu takes a long time

I installed git on ubuntu using the command

sudo apt-get install git-core 
sudo apt-get install git

After that I tried to install node.js using the command

git clone git://github.com/ry/node.git

This step says

Cloning into node..

and takes a long time and does not return.

Did I miss something?

+5
source share
1 answer

This repository ( git://github.com/ry/node.git) actually redirects to the account joyent.

Try the destination URL with git or https protocol and see if the clone works faster.

git clone git://github.com/joyent/node.git
git clone https://github.com/joyent/node.git

Plus, 2 days ago, GitHub had a problem that could affect the clone:

10:11 . .
10:05 UTCWe .


:

vonc@voncp1 ~/ $ time git clone git://github.com/joyent/node.git
[ VonC,vonc@laposte.net for github.com ]
Cloning into 'node'...
remote: Counting objects: 92208, done.
remote: Compressing objects: 100% (23478/23478), done.
remote: Total 92208 (delta 72604), reused 85936 (delta 67189)
Receiving objects: 100% (92208/92208), 57.96 MiB | 4.49 MiB/s, done.
Resolving deltas: 100% (72604/72604), done.

real    0m34.156s
user    0m9.777s
sys 0m2.104s

vonc@voncp1 ~/ $ time git clone https://github.com/joyent/node
[ VonC,vonc@laposte.net for github.com ]
Cloning into 'node'...
remote: Counting objects: 92208, done.
remote: Compressing objects: 100% (23478/23478), done.
remote: Total 92208 (delta 72604), reused 85936 (delta 67189)
Receiving objects: 100% (92208/92208), 57.96 MiB | 3.48 MiB/s, done.
Resolving deltas: 100% (72604/72604), done.

real    0m43.459s
user    0m10.153s
sys 0m1.752s
+3

All Articles