John Goodall

Research Scientist

Data Science and Visualization Group

Oak Ridge National Laboratory

  865.446.0611

  jgoodall@ornl.gov

 

Tell git to use https instead of git protocol

Many corporate firewalls blocks the git protocol, causing tools like bower to fail without jumping through some hoops. But pretty much every firewall allows web traffic through, so you can always use https if your tools know about it. The solution is to tell git to always use https instead of git by running the following command:

  git config --global url."https://".insteadOf git://

This adds the following to your ~/.gitconfig:

[url "https://"]
  insteadOf = git://

All git commands will perform a substitution of git:// to https://. Thanks StackOverflow!

Reference