git ftp-cURL-Maxdownload=-1*写入正文失败(0!=131)

git ftp-cURL-Maxdownload=-1*写入正文失败(0!=131),curl,git-ftp,Curl,Git Ftp,嘿,我在尝试“git ftp init”时遇到了git ftp问题 它连接到服务器,尽管我收到了一个错误调用: * Maxdownload = -1 * Failed writing body (0 != 131) 以下是我使用时得到的全部信息: git ftp init -vv Sun, Jan 6, 2019 6:53:19 PM: git-ftp version 1.5.1 running on MINGW64_NT-10.0 LAPTOP-VQH0NQNO 2.11.2(0.32

嘿,我在尝试“git ftp init”时遇到了git ftp问题

它连接到服务器,尽管我收到了一个错误调用:

* Maxdownload = -1
* Failed writing body (0 != 131)
以下是我使用时得到的全部信息:

git ftp init -vv

Sun, Jan  6, 2019  6:53:19 PM: git-ftp version 1.5.1 running on MINGW64_NT-10.0 LAPTOP-VQH0NQNO 2.11.2(0.329/5/3) 2018-11-10 14:38 x86_64 Msys
Sun, Jan  6, 2019  6:53:21 PM: Host is 'ftp.****.site'.
Sun, Jan  6, 2019  6:53:21 PM: User is '****'.
Sun, Jan  6, 2019  6:53:22 PM: Password is set.
Sun, Jan  6, 2019  6:53:22 PM: CACert is ''.
Sun, Jan  6, 2019  6:53:22 PM: Insecure is '0'.
Sun, Jan  6, 2019  6:53:22 PM: Proxy is ''.
Sun, Jan  6, 2019  6:53:23 PM: Path is 'public_html/'.
Sun, Jan  6, 2019  6:53:23 PM: Syncroot is 'c:/xampp/htdocs/hsositetest/'.
Sun, Jan  6, 2019  6:53:23 PM: The remote sha1 is saved in file '.git-ftp.log'.
Sun, Jan  6, 2019  6:53:23 PM: Check if curl is functional.
Sun, Jan  6, 2019  6:53:23 PM: Check if ftp://****:***@ftp.****.site is accessible.
*   Trying ****...
* TCP_NODELAY set
* Connected to ftp.****.site (****) port 21 (#0)
< 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
< 220-You are user number 4 of 50 allowed.
< 220-Local time is now 18:53. Server port: 21.
< 220-This is a private system - No anonymous login
< 220-IPv6 connections are also welcome on this server.
< 220 You will be disconnected after 15 minutes of inactivity.
> USER ****
< 331 User **** OK. Password required
> PASS ****
< 230 OK. Current restricted directory is /
> PWD
< 257 "/" is your current location
* Entry path is '/'
> CWD public_html
* ftp_perform ends with SECONDARY: 0
< 250 OK. Current directory is /public_html
> EPSV
* Connect data stream passively
< 229 Extended Passive Mode Entered (|||61618|)
*   Trying ****...
* TCP_NODELAY set
* Connecting to **** (****) port 61618
* Connected to ftp.****.site (****) port 21 (#0)
> TYPE A
< 200 TYPE is now ASCII
> LIST
< 150 Accepted data connection
* Maxdownload = -1
* Failed writing body (0 != 131)
* Closing connection 0
curl: (23) Failed writing body (0 != 131)
Sun, Jan  6, 2019  6:53:24 PM: fatal: Can't access remote 'ftp://****:***@ftp.****.site', exiting...
如果您有任何建议,我将不胜感激,非常感谢您在git ftp init时提出建议


您的ftp存储库需要为空。

创建一个空白的.git ftp.log,然后使用git ftp push对我来说很有效。

对不起,这到底是什么意思?我的服务器完全为空,但我仍然收到以下错误:/。请确保您的服务器为空,您可以查询是否存在隐藏文件
(ls-a)
如果您确定服务器是空的,并且仍然无法初始化,您可以通过在服务器上创建一个空的.git-ftp.log来手动初始化它,然后使用
git ftp push
@dealoc creating git-ftp.log覆盖以前的记录,这样做效果很好,必须解决这个问题
[git-ftp]
    url = ftp://ftp.****.site
    user = ****
    password = ****
    remote-root = public_html
    syncroot = c:/xampp/htdocs/hsositetest/