4

This question already has an answer here:

Each of my module has a repository. I have dependency for my modules in composer.json in project folder. For deployment I need:

  • in production: git clone, composer install.
  • in develop: git clone, composer install and prepare my modules to develop.

After composer install magento create folders for my modules in /vendor and in /app/code/. Also developers recommend to use /app/code/ for developing instead /vendor.

But how I can add git tracking for modules? What do with a modules if need to execute composer install?

marked as duplicate by Rakesh Jesadiya, Murtuza Zabuawala, 7ochem, Siarhey Uchukhlebau, Amit Bera Feb 16 '17 at 20:06

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2

I found a solution for myself.

Project modules will be without git in app/code/Vendor/.

Common modules use git and composer in vendor/.

Not the answer you're looking for? Browse other questions tagged or ask your own question.