Git托管使用FTP可访问的Web服务器? [英] Git hosting using an FTP-accessible web server?

查看:169
本文介绍了Git托管使用FTP可访问的Web服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行一个(可怕的)网站,该网站托管在第三方网络服务器上。我有FTP访问我的网络服务器。由于我的Web服务器已经可以在任何地方访问,所以我希望将它作为一个集中的Git存储库使用。我可以推送更新,然后从任何地方获取它们。



问题是,当我尝试推送它时,出现以下错误:

错误:在访问[在此处插入我的存储库信息]时,RETR响应:550



550似乎是FTP权限否认错误。但是,我插入了正确的用户名和密码。我可以通过FTP客户端创建任何我想要的文件夹结构,那么如果我已经可以按照我的需要读写,那么Git需要哪些特殊权限?

编辑:我没有SSH访问此Web服务器 - 仅限FTP。

实际上并不是被设计为用作CVS或SubVersion等中央存储库。你可以做的是克隆你的本地存储库并将其托管到你的服务器上。当你做出更改时,你需要在本地提交它们,当你准备好更新你服务器上的版本库时,你可以使用git push命令。这是一个链接,向您展示sourceforge是如何做到的。 sourceforge示例。希望有所帮助。


I run a (terrible) website that's hosted on a third-party web server. I have FTP access to my web server. Git supposedly has the ability to push/pull via FTP natively.

Since my web server is already accessible everywhere, I was hoping to use it as a centralized Git repository. I could push updates to it, then get them from anywhere.

The problem is that when I try to push to it, I'm getting the following error:

error: RETR response: 550 while accessing [insert my repository info here]

550 seems to be an FTP permission denied error. However, I have the correct username and password inserted. I'm able to create whatever folder structure I want through an FTP client, so what special permissions does Git need if I can already read and write as I please?

EDIT: I do not not have SSH access to this web server -- only FTP.

解决方案

Git really isn't designed to be used as a central repository like CVS or SubVersion. What you can do is clone your local repository and host it on your server. When you make changes you commit them locally, and when you are ready to update your repository on your server you use a git push command. Here's a link to show you how sourceforge does it. sourceforge example. Hope that helps.

这篇关于Git托管使用FTP可访问的Web服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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