Home  >  Q&A  >  body text

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

黄舟黄舟2743 days ago964

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-04-17 16:42:37

    This parameter actually adds fine-grained control to rebase, making rebase more arbitrary.

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

    The meaning of the command使用(from, to]所指定的范围内的所有commit在base这个commit之上进行重建.

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

    reply
    0
  • Cancelreply