, , :
git checkout master
git merge -s recursive -X theirs branch-c
git merge -s recursive -X theirs branch-a
git merge -s recursive -X theirs branch-b
recursive, , - , , . , git merge man ours theirs .
, , , , , . , ( , ), , , , :
git merge --no-commit branch-c
... , , . , , :
comm -1 -2 <(git ls-tree -r --name-only master|sort) <(git ls-tree -r --name-only branch-c|sort) > common.txt
... branch-c :
xargs -n 1 git checkout branch-c -- < common.txt
... git commit, .
, , - git , , .