1. 将目标远程分支checkout到本地;如:
git remote add Upstream https://github.com/apache/spark.git
git remote update Upstream
git checkout -t Upstream/branch-2.4.5
2. 切换到自己的开发分支,将mr相关commits rebase 合并为一个commit;(commit需分开的视情况而定)
3. 自己的开发分支,执行 git rebase branch-2.4;
4. 最后将rebase后的开发分支,git push -f 到自己的远程仓库开发分支上,MR即可更新;