我无法克隆HTTPS存储库。我可以克隆SSH repos,但不能克隆HTTPS repos。我无法测试GIT协议,因为我在公司防火墙后面
这就是我想做的:
$git克隆https://github.com/nvie/gitflow.git
克隆到gitflow。。。
致命:找不到“https”的远程帮助程序
到目前为止,我已经尝试了以下内容(基于谷歌搜索)
- 通过apt-get清除和安装Git
- 通过apt-get为Git安装
build-deps - 安装curl-dev库
- 安装expat库
- 使用以下方式下载Git源代码和构建:
/configure--prefix=/usr--with curl--with expat- 还尝试将configure指向curl二进制(
/configure--prefix=/usr--with curl=/usr/bin/curl)
我在互联网上找到的所有东西都试过了,但运气不好。有人能帮我吗
Git版本=1.7.6.4
OS=Ubuntu11.04
编译git时没有安装(lib)curl-devel可能会导致这种情况
如果安装(lib)curl-devel,然后重新生成/安装git,这应该可以解决问题:
$yum安装curl-devel
$#cd到git源所在的任何位置
$cd/usr/local/src/git-1.7.9
美元/配置
$make
$make安装
这在Centos 6.3上对我有效
如果您没有yum,可以在此处将源代码下载到curl-devel:
- http://curl.haxx.se/dlwiz/?type=devel
如果您正在运行Ubuntu:
sudo apt get安装libcurl4 openssl dev