Git hosting with an FTP accessible web server?

I am running a (terrible) site 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 available everywhere, I was hoping to use it as a centralized Git repository. I could push updates to him, and then get them from anywhere.

The problem is that when I try to click on it, I get the following error:

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

550 seems to be an FTP permission failure. However, I have the correct username and password. I can create any folder structure I want through an FTP client, so what special permissions do Git need if I can already read and write as I like?

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

+4
source share
2 answers

Git is not really intended to be used as a central repository such as 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 the git push command. Here's a link to show you how sourceforge works. sourceforge example . Hope this helps.

+1
source

what about git-ftp ? This seems to be the right decision.

+1
source

Source: https://habr.com/ru/post/1384745/


All Articles