Skip to content

Instantly share code, notes, and snippets.

@wiedzmin
Forked from taoyuan/npm-using-https-for-git.sh
Created December 26, 2020 09:54
Show Gist options
  • Save wiedzmin/3f0ed1cdc0834583428ab355f69d2a93 to your computer and use it in GitHub Desktop.
Save wiedzmin/3f0ed1cdc0834583428ab355f69d2a93 to your computer and use it in GitHub Desktop.
Force git to use https:// instead of git://
# 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://
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment