问题描述
我正在开发一个http代理。我试图用他们的回购工具克隆Android的源代码树。
此工具坚持使用 git://
网址,即使 http:/ /
网址也可以使用。因此,我无法下载源代码。
是否可以强制 git
始终使用 http
?
编辑: 。例如,这可以工作:
git clone http://android.git.kernel.org/platform/manifest.git
但是这不会(errno = Connection超时):
git clone git://android.git.kernel.org/platform/manifest.git
因此 以下是一个示例重写GitHub的默认协议: I'm working behind an http proxy. I'm trying to clone Android's source tree using their "repo" tool. This tool insists on using Is it possible to force Edit: my http_proxy is configured correctly. For example, this works: But this doesn't (errno=Connection timed out): So this answer does not really help me. Here's an example of rewriting the default protocol for GitHub: 这篇关于如何将`git:`网址转换为`http:`网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
git config --global url.https://github.com/.insteadOf git ://github.com/
git://
URLs, even though http://
URLs also work. As a result, I can't download the source.git
to always use http
?git clone http://android.git.kernel.org/platform/manifest.git
git clone git://android.git.kernel.org/platform/manifest.git
git config --global url.https://github.com/.insteadOf git://github.com/