Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git:在代理下使用Git://_Git - Fatal编程技术网

Git:在代理下使用Git://

Git:在代理下使用Git://,git,Git,我正在尝试使用代理后的git://协议克隆git存储库。我在处理使用http协议(https://)的问题上没有问题,但是代理设置似乎没有应用到git:// 是否可以在代理后面使用git://协议 我已在我的~/.gitconfig文件中设置了代理设置,如下所示: [http] proxy=http://: [https] proxy=https://: 另外,我知道可以通过使用~/.gitconfig中的以下行将git://替换为https://来克隆一些存储库: [url "ht

我正在尝试使用代理后的
git://
协议克隆git存储库。我在处理使用http协议(
https://
)的问题上没有问题,但是代理设置似乎没有应用到
git://

是否可以在代理后面使用
git://
协议

我已在我的
~/.gitconfig
文件中设置了代理设置,如下所示:

[http]
proxy=http://:
[https]
proxy=https://:
另外,我知道可以通过使用
~/.gitconfig
中的以下行将
git://
替换为
https://
来克隆一些存储库:

[url "https://"]
    insteadOf = git://

但是这不能应用于那些在
git://
https://

之间有不同协议的人,我不认为你的普通http代理能够代理
git://
,这是错误的。