I am looking for a way to be able to manage custom deviations from a master REPO which has common code shared by all, and individual custom code which is specific only to that particular branch.
I am using the term 'BRANCH' for this generically as I am not sure if that is the correct term to use for this kind of scenario.
The Reason for requiring this, is I have a standard application which gets deployed in multiple locations, but each location may also have overrides and custom code specific to that install.
As all branches share 95% of the same common code as the master, I do not want to have to maintain each branch separately, when the master / common code is updated, but as each branch has custom code specific only to that branch, I also need to be able to maintain each branch's custom code independently and be able to clone the code for each branch independently of the master and other branches.
Is there a clean way of achieving this using GIT ?