我试图通过https推送到一个仓库,但是收到以下错误信息:
[root@localhost systemevents]# git push
git: 'http-push' is not a git command. See 'git --help'.
fatal: git-http-push failed
我没有检查SSL证书 (git config --global http.sslVerify false
)。这是在VMWare Player运行的Redhat Enterprise Linux 5虚拟机上进行的全新安装。Git是以以下方式安装的:
./configure --with-openssl --with-expat=/opt/expat --with-curl=/opt --prefix=/usr/local
make all
make install
从源代码安装了Libssh2(v1.4.2);按照以下方式安装了Curl和Expat:
#Curl v7.26
./configure --with-libssh2 --enable-shared --prefix=/opt
make; make install
# Expat v2.1
./configure --prefix=/opt/expat
make; make install
我可以使用的yum软件库中这些程序的版本相当老,显然对于git push
而言太旧了。这个错误信息对我来说相当令人困惑,不确定该怎么处理它。我可以通过HTTP克隆和拉取,没有问题。