If you manage your project in git and the "framework" is managed in git, too, then you have different possibilities:
- Just copy the files from your framework to your project. (This is good, if you don't want a copy of the whole history of the framework, but makes updates a bit ugly.)
- Use
git submodule
to include the other repository. (In your project you basically store a pointer to a commit in the framework repository.) - Use
git subtree
this pretty much integrates the commits of the framework into your project and allows easy upgrades.
You have to find out which way is best for your situation.
You can find a nice article on the topic here.