It looks like you have a code base that all clients use, and then you have some “hacks” for specific client functions.
In my opinion, you will have all the "base" code on the main branch. All customers will have a client branch. Be careful and find out where your changes are made.
, , , , .
Rebasing , .
.
Master is at commit 10
\
Branch has commits 10, 11, 12, 13, 14, 15 (notice it has commit 10 as well)
|
Master commits 16, 17
When you rebase:
Master has 10, 16, 17.
Branch has 10, 16, 17, 11, 12, 13, 14, 15
. Rebase 10, 16 17, 11, 12, 13, 14 15.
, , .