问题描述
通过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 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 3fatal: 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服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!