gpt4 book ai didi

linux - git: 'http-push' 不是 git 命令。致命:git-http-push 失败

转载 作者:太空狗 更新时间:2023-10-29 11:20:01 26 4
gpt4 key购买 nike

我正尝试通过 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)。这是在 Redhat Enterprise Linux 5 虚拟机上进行的全新安装,在 VMWare Player 中运行。 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 来说太旧了。错误消息让我很困惑,不知道该怎么办。我能够毫无问题地克隆和 pull HTTP。

最佳答案

我在 Windows 上遇到了完全相同的错误。我尝试了几个不同版本的 git,都出现了同样的错误。我最终查明问题是由未找到 libcurl 或不在正确的位置引起的。在我的例子中,我将 libcurl.dll 从 Git\bin 文件夹复制到 Git\libexec\git-core 文件夹。然后我不得不将它重命名为 libcurl-4.dll。我的猜测是,就在 *nix-land 中找到 libcurl 共享库而言,您的情况也发生了类似的事情。

关于linux - git: 'http-push' 不是 git 命令。致命:git-http-push 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11275134/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com