Maison  >  Questions et réponses  >  le corps du texte

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

黄舟黄舟2743 Il y a quelques jours968

répondre à tous(1)je répondrai

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

    répondre
    0
  • Annulerrépondre