tags:

views:

45

answers:

2

We are developing a web application and the framework under it. I would like to be able to use the framework for other projects and I am even considering making the framework open source.

Right now each developer has 2 separate folders, one for each. I then have a 3rd folder with symlinks to the files in the to git project folders. This works but we have pull both the framework and the app and if they get out of sync nothing works.

We are going to be starting the second app using the framework soon.

Is there a better way to do this?

+3  A: 

You might find that git submodules do what you need. They are similar to svn externals. The idea would be to house the framework as a submodule inside your project.

Marcelo Cantos
+4  A: 

Having not used git for anything serious, I can't be certain, but I'd guess you want git's equivalent to subversions svn:externals property.

Some googling indicates that you may want to use submodules. This article may help you.

developmentalinsanity
This looks like what I need to do. Thanks for the help.
Kevin