I uploaded a yii website through git by pushing to ssh openShift server. i had downloaded plugs with composer. now all the plugs are being considered as subprojects, that means source code of these plugs ain't uploaded. how can i stop the subproject feature
You should remove the submodules, see How do I remove a submodule?
After that, you can add stuff to your .gitignore
file, so that you don't accidentally add the files back:
file.php
dir/