2014-09-21 57 views

回答

3

你可以设置你的Gemfile一个gitbranch这个宝石(见documentation

# Gemfile 
gem 'yomu', :git => 'https://github.com/jeremybmerrill/yomu.git', :branch => 'feature/servermode' 
+0

尝试过,但得到一个错误 '$宝石 'yomu',:git的=>“https://开头github.com/jeremybmerrill/yomu.git':branch =>'feature/servermode' -bash:https://github.com/jeremybmerrill/yomu.git:没有这样的文件或目录' – davidt 2014-09-21 18:37:33

+0

您应该添加此行到Gemfile和运行'捆绑安装' – gotva 2014-09-21 18:38:28

+0

哦,我想我遇到你的全球问题:你正试图安装gem全球系统。我想说,如果你有ruby项目,你应该通过Gemfile使用打包器和设置宝石 – gotva 2014-09-21 18:41:14