rails 3插件安装声明一个特定的分支

时间:2010-08-31 17:12:10

标签: ruby-on-rails ruby git github

我想从git repo上的特定分支安装,我该怎么办?

1 个答案:

答案 0 :(得分:1)

对于插件:

rails plugin install git://github.com/user/project.git -r branch_name

作为gem,在你的gemfile中声明如下:

gem "project", :git => "git://github.com/user/project.git", :branch => "branch_name"