我正在关注教程http://anantgarg.com/2013/09/25/git-ftp-for-windows/ http://anantgarg.com/2013/09/25/git-ftp-for-windows/并得到错误:
$ git ftp init
There are 720 files to sync:
[1 of 720] Buffered for upload '.gitignore'.
[2 of 720] Buffered for upload 'wp-config-sample.php'.
....
[24 of 720] Buffered for upload 'wp-content/plugins/woocommerce/admin/post-types/writepanels/order-item-html.php'.
Uploading ...
fatal: Could not upload files., exiting...
可能是什么问题呢?我已使用引号( 'mypassword' )设置密码,但仍然出现相同的错误
您可以通过使用“-v”标志进行超详细输出来查看确切错误的输出。
问题可能是以下之一
- Incorrect FTP credentials - check that the server, username, and password are all correct.
-
网址/服务器:如果不是标准 FTP,请确保在 URL 中包含协议
(
sftp://ftp.domain.com:22
).
-
Password:也尝试删除密码周围的引号
- The server path is not set or incorrect. Often, an FTP login takes you to the server root. You may not have write-privileges there. You'll need to set the site root path.
- 尝试在 URL 参数中设置路径
ftp://ftp.domain.com/public_html
尝试通过命令行参数执行“init”(而不是通过 Git 配置设置)并使用“-v”设置详细输出:
git ftp init -u username -p 'password' -v ftpserverurl.com
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)