Skip to content

Instantly share code, notes, and snippets.

View jmetzger's full-sized avatar

Jochen Metzger jmetzger

View GitHub Profile
@taoyuan
taoyuan / npm-using-https-for-git.sh
Last active February 27, 2024 17:39
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://