Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ekaitzastiz's avatar

Gitignore only in specific branch for deployment-production

Hi!

I have an app, where I work with a friend developing it, we have ignored public/css/* in GIT because we use sass+gulp so our files are in assets.

But now, when I am going to deploy, I would like not to have the public/css/* file ignored for master branch. I tried many things (.git/config... .git/info/exclude_for_development) and similar things, but first, I am not sure what I am really doing, and second, I want to do, what I am asking. I want to do that, because I don't want to use FTP or I don't want to install node+npm+gulp+bower on the server just to compile sass.... same with bower... In addition we don't have root access for this customer vps, and I think that the person who manages the vps won't want to install all that tools.

Any solution? How do you work usually?

Thank you

sorry because my English level.

0 likes
0 replies

Please or to participate in this conversation.