git rm --cached [submodule-name] or git rm --cached [path] for example git rm --cached docroot/vendor/nodespark/des-connector