git checkout mastergit fetchgit merge --ff-only origin/mastergit checkout BRANCHgit rebase master- If conflicts, resolve and git rebase --continue. Do not push.
git push origin/BRANCH -fgit checkout mastergit merge --no-ff BRANCHgit push origin/master