https://blog.csdn.net/afeiqiang/article/details/50814553
https://www.jianshu.com/p/47c1895f9f8d
git rebase --onto newbranch commit_id
后面就是要排除的commit.
修改其中commit信息:
https://blog.csdn.net/lang523493505/article/details/80828279
git rebase变值。
https://www.jianshu.com/p/f7ed3dd0d2d8
git权威解释: 秒杀一切:
https://git-scm.com/docs/git-rebase
git ^ ~的区别:
https://www.jianshu.com/p/6ce13ce46d8b
- ~2表示沿着commit树向上搜索两层,并获得该层的第一个commit(如果该层有多个commit的话)
- ^2表示获得某个commit的第2个父commit(merge两个分支后产生的merge commit就拥有两个父commit)