• Home
  • Blog
  • Community
  • Team
  • Products
  • Services
  • About

Text Post

Gemfile trick for github repositories

Posted by tech-angels, May 5th

Tired of writing long git paths to github repositories in Gemfile? Then you will find this useful. When the repository you need is public, you can use :github shortland instead of :git. And just specify github username and repository name separated by slash.

If repository name and username are the same, you can drop one:

    gem "rails", :github => "rails/rails"
    gem "rails", :github => "rails"

Are both equivalent to:

    gem "rails", :git => "git://github.com/rails/rails.git"

I wonder, how didn’t we enjoy this all the time? :) 

#gemfile#github

5 notes
  1. techphilosophy likes this
  2. rajatvig reblogged this from tech-angels
  3. mattpolito reblogged this from tech-angels
  4. gnepud likes this
  5. ouray likes this
  6. tech-angels posted this
blog comments powered by Disqus
Share Share

Popular issues

People We Follow

  • Tumblr Staff
  • code code code
  • giant robots smashing into other giant robots
  • (:title "Technotalk")
  • Édouard Brière
  • The Changelog
  • Digital Wanderings
  • Airbrake Status

Popular Tags

Need to contact us?

You can join us on our social media space.

Tweet
  • Follow us on facebook
  • Follow us on twitter
  • Contact us by Mail