在 Gemfile 中使用 github repo 作為特定的 gem

代替

gem 'rails'

你可以使用指定 github 使用者/ repo 組合

gem 'rails', github: 'rails/rails'