首頁  >  問答  >  主體

linux - git rebase --onto 中onto的作用

黄舟黄舟2743 天前967

全部回覆(1)我來回復

  • ringa_lee

    ringa_lee2017-04-17 16:42:37

    這個參數其實是給rebase增加了細粒度的控制,使得rebase更隨意.

    # 使用onto之后, 后面会跟3个参数
    $ git rebase --onto base from to

    命令的意義使用(from, to]所指定的范围内的所有commit在base这个commit之上进行重建.

    參考 How to copy a range of commits from one branch to another?

    回覆
    0
  • 取消回覆