ma11hew28
ma11hew28

Reputation: 126397

Which URL should I use when adding a Git submodule?

Github: Which URL should I use? recommends cloning with HTTPS.

But, I see that Handlebars uses git:// in .gitsubmoudle.

Which is best for an open-source project that I want others to be able to easily clone recursively?

Upvotes: 2

Views: 40

Answers (1)

hjpotter92
hjpotter92

Reputation: 80639

If you've other contributors, https would be my suggestion, since the proxy servers (and ISPs) do not block those requests, in general.

OTOH, if you can be sure (or make sure), that they would not be using any such ISP services, you can choose to provide them access via any of those methods. I personally prefer SSH over other protocols.

Upvotes: 1

Related Questions