Ⅰ. はじめに

タイトルの通り「git clone recursive のエラー対策方法」です。

エラー例は以下のとおりです。

$ git clone --recursive https://github.com/user001/project001
（略）
Cloning into 'C:/project001/dependency001'...
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:user002/dependency001.git' into submodule path 'C:/project001/dependency001' failed
Failed to clone 'dependency001' a second time, aborting