Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 1.7.9.5.

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.