Created
April 9, 2014 08:42
-
-
Save hipertracker/10242633 to your computer and use it in GitHub Desktop.
git - https:// instead of git://
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://stackoverflow.com/questions/15903275/git-is-blocked-how-to-install-npm-modules | |
git config --global url."https://".insteadOf git:// | |
This simply adds the following two lines to ~/.gitconfig: | |
[url "https://"] | |
insteadOf = git:// | |
Now, as if by magic, all git commands will perform a substitution of git:// to https:// |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment