[英]Define sync directory on bitbucket pipeline
I am using folder structure for local vagrant development, 我正在使用文件夹结构进行本地流浪的开发,
-bin -bin
-htdocs -htdocs
-resources -resources
-vagrant -流浪汉
those folders are on git 那些文件夹在git上
but I want to clone only htdocs folder content on server using git ftp push
但我想使用git ftp push
克隆服务器上的htdocs文件夹内容
How to define clone directory on bitbucket pipelines ? 如何在bitbucket管道上定义克隆目录?
By the following documentation on 通过以下文档
https://www.mankier.com/1/git-ftp#Defaults https://www.mankier.com/1/git-ftp#Defaults
There is need to set syncroot in git config 需要在git config中设置syncroot
Before executing of command git ftp <init|push>
git should be configured like on this example 在执行命令之前, 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
or use one line command 或使用一行命令
$ git config git-ftp.<(url|user|password|syncroot|cacert)> <value>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.