Skip to content

Instantly share code, notes, and snippets.

@i3zhe
Created August 2, 2013 06:13
Show Gist options
  • Save i3zhe/6137823 to your computer and use it in GitHub Desktop.
Save i3zhe/6137823 to your computer and use it in GitHub Desktop.
In case git:// protocol blocked by company or not available to you for any reason, you can do this.
If this is an issue with your firewall blocking the git: protocol port (9418), then you should make a more persistent change so you don't have to remember to issue commands suggested by other posts for every git repo.
git config --global url."https://".insteadOf git://
This simply adds the following two lines to ~/.gitconfig:
[url "https://"]
insteadOf = git://
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment