管道和git-ftp土库错误 [英] Pipelines and git-ftp dirt repository error

查看:110
本文介绍了管道和git-ftp土库错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用带有git-ftp的管道将文件推送到我的远程服务器.

I am trying to use Pipelines with git-ftp to push files to my remote server.

错误消息:

致命:肮脏的存储库:尚未提交的更改.正在退出...

fatal: Dirty repository: Having uncommitted changes. Exiting...

YML文件:

image: php:7.1.1

pipelines:
  default:
    - step:
        caches:
          - composer
        script:
          - apt-get update && apt-get install -y unzip
          - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
          - composer install
          - apt-get -qq install git-ftp
          - git ftp init --user USER --passwd PASSWORD ftp://user@mydomain.tld@ftp.mydomain.tld/

我也尝试过 git ftp push ,但是还是一样.

I also tried git ftp push but same thing.

没有未提交的更改,那有什么用呢?

There are no uncommitted changes, so what gives?

推荐答案

尝试调试使您的回购协议变脏的行添加到脚本图中的更改:

try to debug changes that made your repo dirty add line to your script graph:

-git status -uno --porcelain

如果这返回您的意思,则在虚拟部署服务器中会发生一些更改.例如,某些文件在通过服务器发送时被破坏了

If it returns you something this means, in virtual deploy server some changes happen. For example, some files was corrupted while sending to over server

png,jpeg,exe,jar等

为了对其进行修复,请在.gitattributes中添加行

in order to fix it add lines into .gitattributes

<代码> *.exe二进制* .jar二进制* .png二进制* .jpg二进制* .gif二进制

这篇关于管道和git-ftp土库错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆