Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cloning on ubuntu takes a long time [closed]

Tags:

git

git-clone

I have installed Git in ubuntu using the command

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

After this, I tried to install node.js using the command

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

At this step, it says

Cloning into node..

and takes a long time and does not return.

Am I missing something here?

like image 916
user1979776 Avatar asked Oct 21 '22 17:10

user1979776


1 Answers

That repository (git://github.com/ry/node.git) actually redirect to joyent account.

Try the destination url, with git or https protocol and see if the clone is faster.

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

Plus, 2 days ago, GitHub was experiencing some issue which could have affected the clone:

10:11 We are currently experiencing issues with one of our file servers. This affects a subset of repositories.
10:05 UTCWe are investigating issues with one of our file servers.


I just tested it with both protocols:

vonc@voncp1 ~/ $ time git clone git://github.com/joyent/node.git
[ VonC,[email protected] 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

and:

vonc@voncp1 ~/ $ time git clone https://github.com/joyent/node
[ VonC,[email protected] 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
like image 111
VonC Avatar answered Oct 27 '22 11:10

VonC