Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

have bundler use http: instead of git:?

I am installing gitlabhq, and in the Gemfile there are references to 'git://...' for certain resources.

However, I am behind a corporate firewall, so I have to use http://.

I can hand-edit the Gemfile, but I was wondering if there was another way to tell bundler to use http:// for git repositories?

like image 216
ErikR Avatar asked Nov 02 '11 20:11

ErikR


1 Answers

You can configure git to use https:// by running running git config --global url."https://".insteadOf git:// or by adding the following to ~/.gitconfig:

[url "https://"]
   insteadOf = git://
like image 88
fny Avatar answered Sep 27 '22 18:09

fny