git - Can you clone via HTTPS even if SSH-style git@github is used

Viewed 121

I'm trying to clone a git repository which has submodules via git submodule update --init --recursive. These submodules all use "git@github.com:foo/bar.git" URLs. Unfortunately, my work place is preventing SSH URLs from their firewall. I can, however, clone via HTTPS, with no problems.

As mentioned, the submodule URLs are hard-coded in the repository to use SSH. Is there a way to tell git to clone these submodule repositories using HTTPS without instead of SSH making any direct modifications to the git repository?

1 Answers
Related