This script is useful when you have multiple SSH keys on your system, eventually having several SSH keys tied to different accounts for the same domain.
It makes use of the core.sshCommand
git configuration directive to update recursively submodules of a repository.
You'll need bash
and git
installed on your system.
From the Terminal, move to the directory you want to install this script (I recommend a directory with your $PATH environment variable) and execute those commands:
wget https://gist.github.com/chsxf/573bbb65fbc38ffafe367d64ba5243b0/raw/gasmssh
chmod +x gasmssh
Move to the desired repository and execute this command:
gasmssh <repository_ssh_uri>