【问题标题】:i cannot push a changes to a git repository using ftp我无法使用 ftp 将更改推送到 git 存储库
【发布时间】:2014-12-26 11:12:25
【问题描述】:

在服务器上,我可以更改文件、提交它们并推送到源。但是从使用源树的本地仓库我不能。本地 repo 的提交工作正常。但是要怎么做才能推动呢?它应该可以工作,因为我克隆了 repo 并且很好。

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)`

【问题讨论】:

  • 请以文本形式添加错误消息,以便可以在 Stack Overflow/Google/Bing/etc 中搜索异常。

标签: git ftp push atlassian-sourcetree


【解决方案1】:

不幸的是,根据Git fails to push to ftp-server 不可能通过 ftp 帐户推送。

根据git-scm.com - GIT URLS

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

【讨论】:

    猜你喜欢
    • 2016-06-27
    • 1970-01-01
    • 1970-01-01
    • 2013-07-04
    • 2011-03-14
    • 1970-01-01
    • 1970-01-01
    • 2011-09-02
    相关资源
    最近更新 更多