1

我正在尝试通过在提示符下使用此命令在 Windows 上使用 Git

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

我收到了这个错误:

fatal: Could not read from remote repository.

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

我在 Web 上关注本教程,我想知道发生了什么(防火墙或其他任何东西)。

我是 git 的菜鸟,所以任何帮助都将不胜感激。

4

1 回答 1

2

我的公司防火墙阻止了 git 协议。我将 git 更改为使用 https 协议,所以它可以工作。

git config --global url."https://".insteadOf git://
于 2014-05-15T18:15:09.383 回答