分支 dev 及衍生分支 dev-ctj 一.rebase 1.git checkout dev-ctj 2.git rebase -i head~num[num 是本分支的提交数,多个提交数先合并为一个提交] 3.git rebase dev [更改基准分支] 3-4(可选).git rebase --abort [中止合并--相当于撤回] 4-0(如果有冲突的话).解决冲突 5.git rebase --continue [继续合并] 6.git push -f [合并结束后提交代码到自己的…