无法使用 http/https 将 Git 推送到远程存储库 [英] Cannot push Git to remote repository with http/https

查看:50
本文介绍了无法使用 http/https 将 Git 推送到远程存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在服务器上由 apache 提供服务的目录中有一个 Git 存储库.我已经配置了 WebDAV,它似乎运行正常.Litmus 返回 100% 成功.

I have a Git repository in a directory served by apache on a server. I have configured WebDAV and it seems to be running correctly. Litmus returns 100% success.

我可以从远程主机克隆我的存储库,但是在尝试通过 http 或 https 推送时,我收到以下错误:

I can clone my repository from a remote host, but when trying to push over http or https, I get the following error:

错误:无法访问 URLhttps://git.example.com/repo/,返回码 22 致命:git-http-推送失败

error: Cannot access URL https://git.example.com/repo/, return code 22 fatal: git-http-push failed

有什么想法吗?

推荐答案

强烈建议尽可能不要使用 WebDAV.如果您必须使用 HTTP/HTTPS,则使用 git-http-backend 推荐使用 CGI 脚本而不是 WebDAV.

It is highly suggested NOT to use WebDAV if possible. If you must use HTTP/HTTPS then usage of the git-http-backend CGI script is recommended over WebDAV.

这篇关于无法使用 http/https 将 Git 推送到远程存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆