Adrian I. Adrian I. - 3 months ago 28
Git Question

Gitignore a folder from vendor folder in Symfony

I want to not ignore a folder in vendor in my Symfony app. I put in .gitignore:

!/vendor/
/vendor/*
!/vendor/myfolder-one/myfolder-two


But this don't work? What is wrong?

Answer

If you want to do something in your bundle ( I assume it is somewhere on git repo and You have it as dependency in composer ) try to run composer install --prefer-source. Then You can make changes in your bundle and push them to it's repo from within your project.