0

I was trying to clone from the rtems repository

git clone git://git.rtems.org/rtems-source-builder.git

The institute connection has a firewall,so I got a connection timed out error how many ever times i tried.So i reffered

git:// protocol blocked by company, how can I get around that?

and I diagnosed the problem using

curl http://github.com:9418

and i got this

curl: (7) Failed to connect to github.com port 9418: Connection timed out

which according to the post proves that my firewall is causing the problem,so i followed the post further and did this

git config --global url.https://.insteadOf git://

and i retyped

git clone git://git.rtems.org/rtems-source-builder.git

but this did not work for me and i get the message

Cloning into 'rtems-source-builder'...
fatal: https://git.rtems.org/rtems-source-builder.git/info/refs not valid: is this a git repository?

I don't understand this as .git changes into /info/refs...how is this happening?

Please can someone help me clone the repository.

I am a newbie to linux and git,so it would be helpful if you can be detailed in answering...thank you in advance.

Community
  • 1
  • 1

1 Answers1

0

If you just need to clone you can use http instead.

git protocol is using ssh and it might be blocked as you just saw.

Another thing to try is to add ssh key under your git account if you can and then try again to clone.

CodeWizard
  • 128,036
  • 21
  • 144
  • 167