git - Manage project backend and frontend in two separate branches or repositories? -
i started project of mobile app have server-side , app itself. so, in master branch created 2 projects myapp_server , myapp , created 2 other branches backend , frontend , want push separate branches project files corresponding them. but, f.e. in backend branch, want put project files only, without parent folder myapp_server itself. shall make git init separate branch inside of project folder? i've made git init in directory contains both projects master branch.
how can that, because bit confused here? feasible? bad idea , should have 2 separate repositories server , app?
tl;dr
should have 2 separate repositories server , app?
yes, that's right way.
details.
a branch tracks state of whole working tree (that's name in folder under git control).
this not possible have in working tree 1 repository , 2 branches:
myapp_server version a , myapp version b
only possible:
myapp_server version a or myapp version b
every project have deserves it's own git repository. may either stand-alone repository or git submodule. submodules quite complex concept, , overkill situation.
Comments
Post a Comment