【问题标题】:rails 3 plugin install declare a specific branchrails 3 plugin install 声明一个特定的分支
【发布时间】:2011-04-06 09:41:04
【问题描述】:

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

【问题讨论】:

    标签: ruby-on-rails ruby git github


    【解决方案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" 
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-06-28
      • 1970-01-01
      • 2017-03-05
      • 1970-01-01
      • 2014-05-26
      • 2013-06-03
      • 2020-01-15
      • 1970-01-01
      相关资源
      最近更新 更多