我有一个管道设置,可以自动处理/构建 CSS 文件。有时我在执行时会遇到此错误git ftp push
:
致命:肮脏的存储库:有未提交的更改。正在退出...
bitbucket-pipelines.yml
image: php:7.2.7
pipelines:
branches:
staging:
- step:
name: Deploy to staging
deployment: staging
script:
- curl -sL https://deb.nodesource.com/setup_8.x | bash -
- apt-get install -y nodejs
- npm install
- npm run build-css
- apt-get update
- apt-get -qq install git-ftp
- git status -uno --porcelain
- git ftp push --user $FTP_username --passwd $FTP_password ftp://ftp.website.com
输出来自 git status -uno --porcelain
git status -uno --porcelain
M style.css
过去我已经提交了 style.css (现在自动构建) - 但现在希望它忽略我的本地 style.css 文件,因为它无论如何都是在构建过程中生成的。我怎样才能解决这个问题?
我认为为时已晚,但今天我遇到了同样的问题。经过一番研究后我删除了yarn.lock
从存储库中删除文件,问题就消失了。希望有帮助!
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)