Skip to content

Instantly share code, notes, and snippets.

@dragonken
Forked from taoyuan/npm-using-https-for-git.sh
Created November 17, 2018 08:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dragonken/cecc7dcd9335be715c2feeade9ab644e to your computer and use it in GitHub Desktop.
Save dragonken/cecc7dcd9335be715c2feeade9ab644e to your computer and use it in GitHub Desktop.
Force git to use https:// instead of git://
git config --global url."https://github.com/".insteadOf git@github.com:
git config --global url."https://".insteadOf git://
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment