レポジトリの特定ブランチを使いたいとか,ローカルでちょっと変更して試したいときのGemfileの変更方法. 変更してbundleを実行すればよい. ref: https://bundler.io/man/gemfile.5.html # あるレポジトリの特定ブランチ gem 'albino', :git => 'git://github.com/yaotti/albino.git', :branch => "enable-g-flag" # 追記: GitHubのmasterならこういう指定もできる(bundler v 1.1以降) gem 'rails', :github => 'rails/rails' # ローカルにあるgem gem 'albino', :path => '/Users/you/path/to/albino' Register as a new user and u
![Gemfileでのgem指定色々 - Qiita](https://cdn-ak-scissors.b.st-hatena.com/image/square/952d8f0a3805a91a434f87f53835c43bc90af060/height=288;version=1;width=512/https%3A%2F%2Fqiita-user-contents.imgix.net%2Fhttps%253A%252F%252Fcdn.qiita.com%252Fassets%252Fpublic%252Farticle-ogp-background-9f5428127621718a910c8b63951390ad.png%3Fixlib%3Drb-4.0.0%26w%3D1200%26mark64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTkxNiZoPTMzNiZ0eHQ9R2VtZmlsZSVFMyU4MSVBNyVFMyU4MSVBRWdlbSVFNiU4QyU4NyVFNSVBRSU5QSVFOCU4OSVCMiVFMyU4MCU4NSZ0eHQtY29sb3I9JTIzMjEyMTIxJnR4dC1mb250PUhpcmFnaW5vJTIwU2FucyUyMFc2JnR4dC1zaXplPTU2JnR4dC1jbGlwPWVsbGlwc2lzJnR4dC1hbGlnbj1sZWZ0JTJDdG9wJnM9YWFiZjc5N2MxYmJiMzY4ZGE2NmQwZjQ3OTIwMDhlNmM%26mark-x%3D142%26mark-y%3D112%26blend64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTYxNiZ0eHQ9JTQweWFvdHRpJnR4dC1jb2xvcj0lMjMyMTIxMjEmdHh0LWZvbnQ9SGlyYWdpbm8lMjBTYW5zJTIwVzYmdHh0LXNpemU9MzYmdHh0LWFsaWduPWxlZnQlMkN0b3Amcz1jOTg5NjgxMDdmZTMzYmIxNzgyOGQ3NDdhY2EyNzZmZg%26blend-x%3D142%26blend-y%3D491%26blend-mode%3Dnormal%26s%3Dfdb383ada0bb72c5f2a890a4e27859d5)