removed the submodule vendor/ZF2 using git rm --cached path/to/submodule rm -rf .git/modules/submodule_name
removed the submodule vendor/ZF2 using
git rm --cached path/to/submodule
rm -rf .git/modules/submodule_name

gerardZf2Comments/modules,gerardoloan/moduleswdoctrine,gerardoloan/moduleswdoctrine,gerardZf2Comments/modules,gerardoloan/moduleswdoctrine