How can I use git for a framework and for a project using this framework while keeping the project separate?
We are developing a web application and the framework underneath. I would like to be able to use the framework for other projects, and I am even considering creating an open source framework.
Each developer now has two separate folders, one for each. Then I have a 3rd folder with symlinks to files in my git project folders. It works, but we fetch both the framework and the application, and if they get out of sync, nothing works.
We'll be launching a second app using a framework soon.
Is there a better way to do this?
+2
a source to share
2 answers
Without using git for anything serious, I can't be sure, but I would assume you want the git equivalent of the subversions svn: externals property.
Some searches show that you can use submodules. This article can help you.
+4
a source to share