Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've made two "complimenting" projects. These two projects are stand alone, but are almost designed to be used together. They are both fairly small projects as well. I'm wanting to host the code on GitHub, but I'm not sure if I should use two repositories or one for this. What do you think I should do?

share|improve this question
Any chance you can tell us what they are so we can determine how they are related? – JeffO May 1 '11 at 14:42
@Jeff Well, one is basically a view engine, and the other is an ASP.Net routing framework – Earlz May 1 '11 at 14:44
up vote 8 down vote accepted

If they are independent, they should be separate repositories. They will likely have different rates of change and you will probably want to create separate releases, etc. You can use git submodules to include one in the other (if appropriate).

share|improve this answer

If at least one of the projects is usable without the another (and it's not a collection of unittests) then use two. One disadvantage of git is the inability to partially clone repositories. This might not be a problem in the present, but if the project grows big and someone is only interested in one of them, they would have to download the other, too.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.