Heim  >  Fragen und Antworten  >  Hauptteil

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

黄舟黄舟2743 Tage vor970

Antworte allen(1)Ich werde antworten

  • 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?

    Antwort
    0
  • StornierenAntwort