在服务器上,我可以更改文件,提交文件,然后推送到原始文件。但是从使用源树的本地回购我不能。本地回购提交工作正常。但是要做什么才能推动?它应该工作,因为我克隆了回购,它很好。
Pushing to ftp://annejulie%40blue-world.pl:password@blue-world.pl/annejulie.blue-world.pl.git
error: Cannot access URL ftp://annejulie%40blue-world.pl:password@blue-world.pl/annejulie.blue-world.pl.git/, return code 3
fatal: git-http-push failed
error: failed to push some refs to 'ftp://annejulie%40blue-world.pl:password@blue-world.pl/annejulie.blue-world.pl.git'
git remote -v
将输出:
origin ../annejulie.blue-world.pl.git (fetch)
origin ../annejulie.blue-world.pl.git (push)`
答案 0 :(得分:0)
不幸的是,根据Git fails to push to ftp-server ,无法通过ftp帐户推送。
Git supports ssh, git, http, and https protocols (in addition, ftp, and ftps can be used for fetching and rsync can be used for fetching and pushing, but these are inefficient and deprecated; do not use them).