Skip to content

Instantly share code, notes, and snippets.

@taoyuan
Last active April 27, 2024 01:22
Show Gist options
  • Save taoyuan/bfa3ff87e4b5611b5cbe to your computer and use it in GitHub Desktop.
Save taoyuan/bfa3ff87e4b5611b5cbe 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://
@E-wallace0001
Copy link

All the yes. Thank you !

@tamipangadil
Copy link

This worked like a charm 🥇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment