How do I get the latest commit of public git repo in my gemfile?
in my gemfile i have the following
I want to grab the latest commit of simple_form. The current release version 2.1.0. But there are things in the latest commit that I would like to use.
2 Solutions collect form web for “How do I get the latest commit of public git repo in my gemfile?”
In Gemfile you can point a gem to its github path, something like this:
gem 'simple_form', git: 'git://github.com/plataformatec/simple_form.git'
This way it’ll point to the master branch, you can also define a specific branch with
gem 'simple_form', git: 'git://github.com/plataformatec/simple_form.git', branch: 'some_branch'
In addition to
branch (as @Miguelgraz correctly suggests), you can point your
Gemfile to a specific
ref of a Git repo:
gem 'simple_form', :git => 'git://github.com/plataformatec/simple_form.git', :ref => 'd7a661'
Don’t forget to re-run
There’s more info at Bundler git reference.