【发布时间】:2018-11-20 01:28:42
【问题描述】:
我正在使用文件夹结构进行本地 vagrant 开发,
-bin
-htdocs
-资源
-流浪者
那些文件夹在 git
但我只想使用git ftp push
如何在bitbucket pipelines上定义克隆目录?
【问题讨论】:
标签: git ftp bitbucket-pipelines git-ftp
我正在使用文件夹结构进行本地 vagrant 开发,
-bin
-htdocs
-资源
-流浪者
那些文件夹在 git
但我只想使用git ftp push
如何在bitbucket pipelines上定义克隆目录?
【问题讨论】:
标签: git ftp bitbucket-pipelines git-ftp
通过以下文档
https://www.mankier.com/1/git-ftp#Defaults
需要在git config中设置syncroot
在执行命令之前git ftp <init|push>
git 应该像这个例子一样配置
$ git config git-ftp.user john
$ git config git-ftp.url ftp.example.com
$ git config git-ftp.password secr3t
$ git config git-ftp.syncroot path/dir
或使用一行命令
$ git config git-ftp.<(url|user|password|syncroot|cacert)> <value>
【讨论】: