Git、WebDAV 和基本网络托管

发布于 2024-10-02 20:31:42 字数 209 浏览 5 评论 0原文

我通过 GoDaddy 有一个基本的网络托管帐户。它有足够的空间,我很好奇是否可以将它用作推/拉/克隆点。

我读到 Git 通过 WebDAV 支持 HTTP(S) 操作,但我从未使用过它。我总体上不太熟悉 WebDAV 或其工作原理。

是否可以设置这种有限的服务器来与 Git 一起使用?我的帐户没有 SSH 访问权限,但我有权配置一些基本的 .htaccess 设置。

I have a basic web hosting account through GoDaddy. It has plenty of space, and I was curious if I could use it as a push/pull/clone point.

I've read that Git supports HTTP(S) operations through WebDAV, but I've never used it. I'm not that familiar with WebDAV in general or how it works.

Is it possible to setup this sort of limited server to work with Git? I do not have SSH access on my account, but I do have permissions to config some basic .htaccess settings.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

赴月观长安 2024-10-09 20:31:42

在 http 服务器上托管 git-repo 有两种方法:

  • “智能”HTTP,您需要在服务器上安装 cgi 脚本。这可能不适合您,因为基本的网络托管通常不允许用户脚本。
  • “哑”HTTP,只需将存储库上传到网络主机即可维护。这可能对你有用。

对于推送到它的人来说,“哑”HTTP 使用起来有点尴尬,但对于从中拉取的人来说,它只是 Works(tm)。推送者需要在存储库上运行“git update-server-info”,并以某种方式将存储库转移到服务器(与通常上传文件的方式相同)。

有关详细信息,请参阅 Git 手册:http://book.git-scm.com/4_setting_up_a_public_repository.html< /a>

There's two ways of hosting a git-repo on an http-server:

  • "smart" HTTP, where you need a cgi-script installed on the server. This will probably not work for you, as basic web-hosting usually don't allow user-scripts.
  • "dumb" HTTP, which is simply maintained by uploading the repo to the web-host. This would probably work for you.

"dumb" HTTP is a bit more awkward to use for the person who pushes to it, but it JustWorks(tm) for those who pulls from it. The pusher needs to run "git update-server-info" on the repo, and somehow get the repository over to the server (in the same way you'd usually upload files).

See the Git Book for details: http://book.git-scm.com/4_setting_up_a_public_repository.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文