git rebase

https://www.jianshu.com/p/4a8f4af4e803

 

1.合并多个commit为一个完整commit

1.git rebase -i start_point end_point  如果不指定end 那么end是当前head所在的位置

 

2.将某一段commit粘贴到另一个分支上

http://gitbook.liuhui998.com/4_2.html

 

posted @ 2018-10-31 16:47  hh9515  阅读(135)  评论(0)    收藏  举报