Search code examples
gitextjsframeworksradix

GIT Base project code


I just developed an ExtJS base framework for most of my projects.

The problem I have at this moment is that I dont know using GIT, how to have the framework code centralized so every project can share that code.

What I want is that all specific projects can reflect changes made on the framework base code.

Thanks in advance.


Solution

  • You can make the framework its own repo, and then have the other project repos add the framework repo as a submodule. Git submodules allow for Git repos to be nested within other Git repos.

    There are multiple advantages to this system. First, the framework stays as its own repo, meaning it can be added as a submodule to as many other project repos as you want. Second, as its own repo, it can be updated and versioned separately, keeping the framework separate from the projects using it.

    There's more info on Git submodules here: http://git-scm.com/book/en/Git-Tools-Submodules