Eri*_*ikR 5 ruby git gem bundler
我正在安装gitlabhq,并且在Gemfile中有对某些资源的'git:// ...'的引用.
但是,我在公司防火墙后面,所以我必须使用http://.
我可以手动编辑Gemfile,但我想知道是否有另一种方法告诉bundler使用http://用于git存储库?
fny*_*fny 11
您可以https://通过运行running git config --global url."https://".insteadOf git://或将以下内容添加到以下命令来配置要使用的git ~/.gitconfig:
https://
git config --global url."https://".insteadOf git://
~/.gitconfig
[url "https://"] insteadOf = git://
归档时间:
14 年,3 月 前
查看次数:
860 次
最近记录:
12 年,10 月 前