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

代替

gem 'rails'

你可以使用指定 github 用户/ repo 组合

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