Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Has anyone managed to do a git-push to a repository on an FTP server? According to the man page of git-push

Git natively supports ssh, git, http, https, ftp, ftps, and rsync protocols.

I can clone the remote repository but when I push I get the error message

error: Cannot access URL ftp://my-ftp-server/git/test.git/, return code 3
fatal: git-http-push failed

Any clues? I'm using Ubuntu 12.04 and git version

share|improve this question
Run curl --version and see if it supports FTP. Also be aware that FTP paths are relative to your home directory on the server – ftp://foo/git/test.git/ is ~/git/test.git/ and ftp://foo/%2Fgit/test.git/ is /git/test.git/. – grawity Oct 4 '12 at 13:53
Yes, my curl installation indeed supports FTP. As far as I know the path should be OK as it is the same as the one I successfully cloned from (I'm doing git push with no additional arguments). – August Karlstrom Oct 4 '12 at 14:00

You must log in to answer this question.

Browse other questions tagged .