简体   繁体   中英

Git hosting using an FTP-accessible web server?

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.

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM