在bitbucket管道上定义同步目录

时间:2018-06-10 18:29:53

标签: git ftp bitbucket-pipelines git-ftp

我正在使用文件夹结构进行本地流浪的开发,

-bin
-htdocs
-resources
-vagrant

那些文件夹在git上 但我想使用git ftp push

仅在服务器上克隆 htdocs 文件夹内容

如何在 bitbucket管道上定义克隆目录?

1 个答案:

答案 0 :(得分:4)

通过以下文件 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>
相关问题