Skip to content

Instantly share code, notes, and snippets.

@natehouk
Forked from taoyuan/npm-using-https-for-git.sh
Created August 20, 2023 06:23
Show Gist options
  • Save natehouk/1dab6217f1810719c43be1d93f554a23 to your computer and use it in GitHub Desktop.
Save natehouk/1dab6217f1810719c43be1d93f554a23 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 [email protected]:
git config --global url."https://".insteadOf git://
# npm using git for https
git config --global url."[email protected]:".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