• Croquette@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    7 months ago

    How would rebasing my own branch work? Do I rebase the main into my branch, or make a copy of the main branch and then rebase? I have trouble grasping how that would work.

    • JackbyDev@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      7 months ago

      You’re still rebasing your branch onto main (or whatever you originally branched it off of), but you aren’t then doing a fast forward merge of main to your branch.

      The terminology gets weird. When people say “merge versus rebase” they really mean it in the context of brining changes into main. You (or the remote repository) cannot do this without a merge. People usually mean “merge commit versus rebase with fast forward merge”