git global url insteadOf setup
# one or the other, NOT both
[url "https://github"]
insteadOf = git://github
# or
[url "git@github.com:"]
insteadOf = git://github
git://
with https://
Rewrite any git://
urls to be https://
but, it won't touch ssh
urls (git@github.com:
)
git config --global url."https://github".insteadOf git://github
ssh
Use ssh
instead of https://
git config --global url."git@github.com:".insteadOf "https://github.com/"