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

查看:388
本文介绍了无法使用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:

错误:无法访问URL
https: //git.example.com/repo/ ,返回代码22致命:git-http-push失败

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

任何想法?

推荐答案

如果可能的话,强烈建议不要使用WebDAV。如果您必须使用HTTP / HTTPS,则使用 git-http-backend 推荐使用CGD脚本而不是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天全站免登陆