Git 无法推送到 ftp-server [英] Git fails to push to ftp-server
问题描述
我在使用 git over ftp 时遇到了一些问题.
I've got some problem using git over ftp.
我现在所拥有的:
- FTP 服务器,为主动和被动 FTP 做好准备;
- 裸 git 存储库,一次提交
存储库是在本地创建的,然后发送到服务器.我不得不使用 git update-server-info 让它工作.现在我可以克隆到我的新存储库并执行拉取操作,但我无法推送.每次我尝试时,git 都会说:
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:
错误:无法访问 URL ftp://f***@w*****/repo/,返回代码 3致命:git-http-push 失败
谁能帮帮我?
问候弗洛里安
推荐答案
注意:如果您的目标是将本地 repo 中已更改的文件复制(部署)到 ftp 服务器,那么:
Note: if your goal is to copy (deploy) files that have changed in your local repo to a ftp server then:
可能更适合这项任务.
据我所知(如 已在此线程中确认),尚不支持 git push 到 ftp.
As far as I know (as confirmed in this thread), there is no support yet for git push to ftp.
这篇关于Git 无法推送到 ftp-server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!