Skip to content

Instantly share code, notes, and snippets.

@taoyuan
taoyuan / npm-using-https-for-git.sh
Last active May 16, 2021
Force git to use https:// instead of git://
View npm-using-https-for-git.sh
# npm using https for git
git config --global url."https://github.com/".insteadOf git@github.com:
git config --global url."https://".insteadOf git://
# npm using git for https
git config --global url."git@github.com:".insteadOf https://github.com/
git config --global url."git://".insteadOf https://