If you want to use branch B for all conflicts, you can simply use the merge strategy:
git merge -X ours branchB
This will merge normally (using the default recursive strategy) until it encounters a conflicting machine, at which point it will automatically get the version of the branch of version B.
source
share