假設我們有以下這幾條
而2023-05-17-01這條commit id = e75ea61e3fe0f7414cfc6da35ae7080b91b36d61 [e75ea61]
而如果我們欲將 (2023-05-17-01)至 HEAD (2023-05-22-02) 都合併成一條
可輸入 git rebase -i e75ea61
接著會要我們選擇pick, squash...等等
做好選擇後,可能還會需要解衝突,之後輸入git rebase --continue 就會繼續rebase,
若都好了就都好了。
0 留言