I use git and composer in my project. My flow: 1 Each module has its own git repository. 2 I use composer and install and update modules to my project
update composer.json
composer update <module name>
composer install
./bin/magento setup:upgrade
./bin/magento cache:flush
git commit ...
In Primary repository i store composer.lock and composer.json
When i checkout to other branch and call composer install some modules are deleted. But EAV attributes remain in the database and my Magento 2 store crashes.
How I can correct uninstall modules and his EAV attributes in my flow?