views:

114

answers:

1

I have two different .Net projects, hosted on github.

I would like to create a shared "commons" library for the two projects.

How should I structure my repository to facilitate this sharing?

Ideally, a change in this common library in one project could easily be pushed into the other project. I prefer to keep the code itself editable from the two projects (within Visual Studio), and not include it as a library. Are there best practices for this?

+5  A: 

You can use Git submodules: http://book.git-scm.com/5_submodules.html

Esko Luontola