Shell tool to facilitate the usage of git in a context where you have multiple hosts in your ~/.ssh/config.
This script automatically catches the HTTPS or the SSH url and then using fzf (general-purpose command-line fuzzy finder) to give you a quick way to select a host that is in ~/.ssh/config.
sudo make installgitmultihost clone git@github.com:user/repo.gitWhat follows is fzf listing the hosts. After selecting a host it will change the github.com (or any other domain name) with the host selected.
This is useful if there are already repositories that have not been configured to used one of the hosts.
gitmultihost remote set-url origin git@github.com:user/repo.gitIt will do the same as cloning and will ask you with fzf what host you want to use.
Those were just examples of what can be done with the tool. Any other git command can be used and every time there is a HTTPS or a SSH url it will give the option to select a different host based on what is in ~/.ssh/config.