【问题标题】:Define sync directory on bitbucket pipeline在 bitbucket 管道上定义同步目录
【发布时间】:2018-11-20 01:28:42
【问题描述】:

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

-bin
-htdocs
-资源
-流浪者

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

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

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

【问题讨论】:

    标签: git ftp bitbucket-pipelines git-ftp


    【解决方案1】:

    通过以下文档
    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>
    

    【讨论】:

      猜你喜欢
      • 2021-03-23
      • 1970-01-01
      • 2021-12-10
      • 2021-08-19
      • 2021-06-02
      • 2019-05-30
      • 2018-05-26
      • 1970-01-01
      • 2019-02-28
      相关资源
      最近更新 更多