Git hosting using an FTP-accessible web server?

2020-07-18 06:12发布

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.

2条回答
Ridiculous、
2楼-- · 2020-07-18 07:05

how about git-ftp? It seems to be the right solution.

查看更多
我只想做你的唯一
3楼-- · 2020-07-18 07:07

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.

查看更多
登录 后发表回答