Git 在bitbucket管道上定义同步目录

Git 在bitbucket管道上定义同步目录,git,ftp,bitbucket-pipelines,git-ftp,Git,Ftp,Bitbucket Pipelines,Git Ftp,我正在使用文件夹结构进行本地流浪汉开发 -bin -htdocs -资源 -流浪汉 那些文件夹在git上 但我只想使用git ftp push在服务器上克隆htdocs文件夹内容 如何在比特桶管道上定义克隆目录?通过 需要在git config中设置syncroot 在执行命令之前git ftp git的配置应该与本例类似 $ git config git-ftp.user john $ git config git-ftp.url ftp.example.com $ git config g

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

-bin
-htdocs
-资源
-流浪汉

那些文件夹在git上
但我只想使用
git ftp push在服务器上克隆htdocs文件夹内容


如何在比特桶管道上定义克隆目录?

通过

需要在git config中设置syncroot

在执行命令之前
git ftp
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>
$git config git ftp。