I'm starting a new project and I'd like to plan it's use with git (using SourceTree) before starting. I work as a self developer and I'm starting a project that will have 3 different areas. This is what is confusing me on what should I do to use git properly.
Basically the project will have this structure:
- Shared: Some code shared between the different areas (e.g. css style, connection to the database);
- App: A restricted area for users/clients only;
- Panel: A restricted area for the admins only;
- WebSite: A public website to serve as a landing page;
What should I do in this case? Should I have different branchs for each
area? Currently I'm using
Git Flow (which is being very useful), but I don't know if it would be ok to keep all of them on the same branch (let's say on the
develop) or create one for each area, e.g.
Each area may (and problably will) need different type of maintenance, so
app can be on currently development while website no.
When reading about this topic I could found some content telling to keep track of each area in it's own way, but I don't know how to structure this on the branches. What would be better to consider on this scenario? Or what other suggestion youc an give me on this? Until today I just worked with git on simple projects, such a simple WebSite, with just one line of development and the Git Flow was just enough (master, develop, feature and hotfix).