Skip to content

Instantly share code, notes, and snippets.

@Lax
Created June 15, 2019 17:30
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 Lax/e9c4d8db2ed0aee45960ce6fc1054239 to your computer and use it in GitHub Desktop.
Save Lax/e9c4d8db2ed0aee45960ce6fc1054239 to your computer and use it in GitHub Desktop.
Force git to use https:// instead of git:// and ssh://
git config --global url."https://github.com/".insteadOf git@github.com:
git config --global url."https://github.com".insteadOf git://github.com
@Lax
Copy link
Author

Lax commented Jun 15, 2019

git config --global http.http://github.com.proxy http://127.0.0.1:1087
git config --global https.https://github.com.proxy http://127.0.0.1:1087

git config --global url."https://github.com/".insteadOf git@github.com:
git config --global url."https://github.com".insteadOf git://github.com

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