I need to use ssh forwarding-agent to enable git cloning on remote servers. The repository has submodules which were originally added with their https addresses. In
https
Use git config --global url..insteadOf to substitute URLs on the fly. Something like
git config --global url..insteadOf git@:/.git
See more examples in https://stackoverflow.com/search?q=%5Bgit-submodules%5D+insteadof