Lets say I'm working with module for CMS. Files of module can be in a different folders. For example, file structure can look like:
/catalog/controller/my_controller.php
/catalog/view/my_view.php
/admin/controller/my_controller.php
/admin/view/my_view.php
I want to version my module and at the same time i'd like to keep it in the ready-for-test environment.
While I'm using git what is the best way to work with the repo? Should i keep all the module files in a separate folder? But then I'll need to copy them to actual environment for tests each time perform changes on it.
Or mb can I install git-repo and module to CMS root folder and put all the CMS files to "Ignore List"?
What would you do?