git - Common code between two projects (repos?) -


i know has been asked in 1 way or before, haven't found answer answer problem.

i have 2 codebases , b (aimed @ different platforms) sharing of code. let's call shared code part c.

what i'd have repo(s?) setup in way can commit changes part c a, , pulling b me changes made c residing in , other way around.

for example, consider dir structure:

a | |-- a.txt |-- common.txt  b | |-- b.txt |-- common.txt 

if make changes a/common.txt , pull b want changes made a/common.txt present in b/common.txt

thanks

you should consider using git submodules.

the thing mention, probably, better off making changes in different folder, pushing commits server and, finally, pulling code bases submodules.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -