Git无法推送到FTP服务器 [英] Git fails to push to ftp-server

查看:245
本文介绍了Git无法推送到FTP服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过ftp使用git有一些问题。



我现在所拥有的:


  • FTP服务器,准备就绪主动和被动FTP;

  • 裸仓库,一个提交



然后发送到服务器。
我不得不使用git update-server-info来使它工作。
现在我可以克隆到我的新存储库并执行拉取操作,但我无法推送。每当我尝试,git说:

错误:无法访问URL ftp:// f *** @ w ***** / repo /,返回代码3
致命:git-http-push失败



任何人都可以帮我吗?



感谢Florian

解决方案

注意:如果您的目标是复制(部署)已经在您的本地仓库中修改为ftp服务器: -ftprel =nofollow noreferrer> git-ftp(python script)

  • git-ftp(shell脚本)

  • git-deploy(ruby脚本)

  • PHPloy(php脚本)

  • Webdrive




  • 可能更适合这项任务。



    据我所知(如在此主题中确认) ,目前还没有支持git push to 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

    解决方案

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

    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.

    这篇关于Git无法推送到FTP服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆