git reset --hard git push -f origin master
Need to merge just file f of branch B into file f of branch A (assumes that all changes are committed in both branches A and B):
git checkout A git checkout --patch B f
git reset --hard git push -f origin master
Need to merge just file f of branch B into file f of branch A (assumes that all changes are committed in both branches A and B):
git checkout A git checkout --patch B f