I have a project in Symfony2 which maintains several branches in Git: develop
, testing
and some other. The file composer.json
is different on each branch so I need to run composer update
all the time to update dependencies and/or delete old or new libraries which might cause unwanted behavior.
Right now I am learning and trying to write some tests using BDD: Behat + Mink and I don't want to have that changes on develop
branch so I have created testing
and made all those changes on that branch but as I said the main problem is to run composer update
any time I switch branches.
Which is the right way to handle this? How would you do it? Any advice? I am getting crazy running the same command several times and then synchronizing my local code (Windows host) on PHPStorm against remote code (Linux server). Ideas?