سؤال

I'm trying to use Git on Windows by using this command on prompt

git ls-remote --tags --heads git://github.com/jquery/jquery.git

And I'm receiving this error:

fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

I was following this tutorial on Web and I'm wondering what is happening (firewall or anything else).

I'm noob with git so any help will be greatly appreciated.

هل كانت مفيدة؟

المحلول

my corporate firewall has blocked the git protocol. I change git to use https protocol, so it works.

git config --global url."https://".insteadOf git://
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top