I've set the core.sshCommand
option for a repo so that I could use a different ssh key when working with it (i.e. sshCommand = ssh -i /path/to/key
). However, when I run git submodule update
this option is not considered:
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Is there any way I can configure the repo to use the given ssh key for itself and any submodules?
GIT_SSH_COMMAND
when you pull/push. – Dolleycore.sshCommand
forgit fetch
andgit push
. – Blinnie