Skip to content

Instantly share code, notes, and snippets.

@asccigcc
Forked from taoyuan/npm-using-https-for-git.sh
Created January 8, 2021 18:58
Show Gist options
  • Save asccigcc/b54d5406fbd39e2df6465ec6a1e40aab to your computer and use it in GitHub Desktop.
Save asccigcc/b54d5406fbd39e2df6465ec6a1e40aab to your computer and use it in GitHub Desktop.
Force git to use https:// instead of git://
# using https for git
git config --global url."https://github.com/".insteadOf git@github.com:
git config --global url."https://".insteadOf git://
# 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