Using Bundler with Git, is https:// or git:// better?
From the default rails template;
gem "rails", :git => "git://github.com/rails/rails"
But, when viewing the rails repo on github, the default clone url is the
Copying and pasting straight from github, I’d end up with;
gem "rails", :git => "https://github.com/rails/rails.git"
These two lines are almost the same, but not quite.
Is there any benefit to
Is one of them faster to do a
Is doing an
https:// checkout easier to cache from githubs perspective?
2 Solutions collect form web for “Using Bundler with Git, is https:// or git:// better?”
They will be pretty much the same. If you are behind a firewall etc. you might consider the
git protocol might be slightly faster ( and is read-only), but it is negligible.
If you don’t care about firewall, use git protocol for bundler purposes as it is the right intent – read only clone of a repo.
The git protocol gives better performance and reliability, but on a host with a web server set up, http exports may be simpler to set up.
follow git user manual.