Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git fails to push to ftp-server

Tags:

git

ftp

I've got some problem using git over ftp.

What I've got right now:

  • FTP Server, ready for active and passive FTP;
  • Bare git repository, one commit

The repository was created locally and then sent to the server. I had to use git update-server-info to make it work. Now I can clone into my new repository and execute pulls, but I cannot push. Everytime I try, git says:

error: Cannot access URL ftp://f***@w*****/repo/, return code 3 fatal: git-http-push failed

Can anyone please help me?

Greets Florian

like image 687
Tornado Avatar asked Nov 30 '10 15:11

Tornado


1 Answers

Note: if your goal is to copy (deploy) files that have changed in your local repo to a ftp server then:

  • git-ftp (python script)
  • git-ftp (shell script)
  • git-deploy (ruby script)
  • PHPloy (php script)
  • Webdrive

might be better suited for this task.

As far as I know (as confirmed in this thread), there is no support yet for git push to ftp.

like image 78
VonC Avatar answered Oct 14 '22 02:10

VonC