Skip to content

Instantly share code, notes, and snippets.

@hipertracker
Created April 9, 2014 08:42
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 hipertracker/10242633 to your computer and use it in GitHub Desktop.
Save hipertracker/10242633 to your computer and use it in GitHub Desktop.
git - https:// instead of git://
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