I need support of 3 versions of my program. Where most files are
joint (common) but several files contain different content for each version.
I'll probably use 4 branches A,B,C,D in Git.
Form example project Ice-cream:
____________________________________________________
Cup.txt: { Waffle cup } – common file for all version
Filling.txt { banana } - special file for B version
Filling.txt { strawberries } - special file for C version
Filling.txt { vanilla } - special file for D version
____________________________________________________
A - branch suitable only for global files (Cup.txt)
B,C,D - branch suitable only for Filling.txt file.
For this strategy I need allow to merge only in one direction: A => B,C,D
My question is how to forbid merging from B,C,D to A branches in Git?