Why are people having this problem?
$ git clone --recursive [email protected]:acani/Chats.git Cloning into 'Chats'... Permission denied (publickey). fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
https://github.com/acani/Chats/issues/53#issuecomment-118014684
I've read some answers that say to change the submodule URL from SSH to HTTP, but why should I have to do that. I don't want to do that. I want to keep it SSH so that I don't have to enter my username & password into Terminal if I want to push. Everyone can clone the SSH URL fine, so why can't they recursively clone it as a submodule?
.gitmodules
file you could instead change your~/.gitconfig
to use SSH instead of HTTP in URLs, as answered in https://mcmap.net/q/166835/-automatically-access-git-submodules-via-ssh-or-https – Terminal