标签: git-ftp

如果文件已经在服务器上,请避免git-ftp上传

假设我有我的应用程序的本地副本,我将其推送到github,然后使用git-ftp将任何更改上传到我的服务器.

我会先用:

$ git ftp init -u <user> -p - ftp://host.example.com/public_html
Run Code Online (Sandbox Code Playgroud)

这会将我的所有文件上传到服务器并git push用于将来的上传,对吧?

但是如果我已经在我的服务器上有一个副本并想在本地设置它怎么办?我尝试下载我的应用程序文件,使用git init,将所有内容推送到github然后当我尝试使用时git ftp push收到此错误:

fatal: Could not get last commit. Network down? Wrong URL? Use 'git ftp init' for the inital push., exiting...
Run Code Online (Sandbox Code Playgroud)

然后我使用了git ftp init命令它工作,但它重新上传了一切.

有没有办法设置它,而无需重新上传所有内容,只是开始使用git ftp push

git version-control github git-ftp

11
推荐指数
1
解决办法
5241
查看次数

使用git-ftp将子文件夹推送到ftp

如何使用git-ftp只将某个子文件夹(html5样板文件的发布文件夹)推送到指定的ftp目录?

git deployment ftp git-ftp

9
推荐指数
1
解决办法
2346
查看次数

如何使用git-ftp设置存储库?

我是新手所以请解释如何设置存储库?
我安装了git-ftp.
我试过了 :git ftp init -u my_User-p my_Pass - ftp://host.example.com/public_html

但我收到此错误消息:

致命:不是git存储库(或任何父目录):.git
致命:不是Git项目?现有....

终端截图

git ftp git-ftp

7
推荐指数
2
解决办法
9834
查看次数

无法在GitFTP中上传文件错误

我正在关注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...
Run Code Online (Sandbox Code Playgroud)

可能是什么问题呢?我使用引号('mypassword')设置了密码,但仍然出现相同的错误

git-ftp

5
推荐指数
1
解决办法
5294
查看次数

密码以#结尾的git-ftp配置设置

我的.git/config文件中的git-ftp信息是(显然这是虚拟信息):

[git-ftp]
   user = myName@mydomain.com
   url = ftp.mydomain.com
   password = PassWord#
Run Code Online (Sandbox Code Playgroud)

当我用我的ftp追上我的本地仓库时

git ftp catchup
Run Code Online (Sandbox Code Playgroud)

我收到错误:

curl: (67) Access denied: 530
Tue, Oct 06, 2015 10:17:04 AM: fatal: Could not upload file: '.git-ftp.log'., exiting...
Tue, Oct 06, 2015 10:17:04 AM: fatal: Could not upload., exiting...
Run Code Online (Sandbox Code Playgroud)

如果我改为从命令行执行此操作:

git ftp catchup -u myName@mydomain.com -p 'PassWord#' ftp.mydomain.com
Run Code Online (Sandbox Code Playgroud)

我没有得到错误.

我已将此问题跟踪为我的密码的结尾#.我已经尝试将密码的配置行更改为引号:

password = 'PassWord#'
Run Code Online (Sandbox Code Playgroud)

但这不起作用.

很显然,我只是改变了我的密码,因此会的工作,但我想弄清楚,为什么#是保持从工作权的配置文件,但它工作正常命令行.任何人都知道如何解决这个问题,所以配置文件正常工作?

先感谢您!

git-ftp

2
推荐指数
1
解决办法
607
查看次数

标签 统计

git-ftp ×5

git ×3

ftp ×2

deployment ×1

github ×1

version-control ×1