I have been using git for a while, but my merging has always been fairly simple. Create a branch, merge it to master. Sometime 2 people have branches out that touch the same code, so there is a merge conflict, typically easy to fix.
But now I have a case where a branch was made and lots of major changes were done. At the same time lots of changes were made to master, and the same files were changed in both. We want all the changes to both branches merged. We fully expect there to be conflicts, but we want to keep them to a minimum.
My question is, is there any difference between merging master to the branch, resolving the conflicts, then merging that to master with merging the branch to master and resolving the conflicts there?
Are there any hints or best practices for doing a complex merge like this to avoid losing any changes?