git submoduleを間違ってあげたときの対処法
A git directory for 'git-tools/git' is found locally with remote(s):
origin https://github.com/git/git.git
If you want to reuse this local git directory instead of cloning again from
https://github.com/git/git.git
use the '--force' option. If the local git directory is not the correct repo
or you are unsure what this means choose another name with the '--name' option.
こんなエラー文がでた
そのときの対処法
.gitmodulesから対象のモジュール情報を削除する
.git/configのモジュール情報を削除する
とってきたリポジトリを削除する
.git/modules/以下にあるsubmoduleでとってきたリポジトリを削除する
でOK
参考↓