From: Junio C Hamano Date: Fri, 08 Aug 2025 23:31:04 GMT Subject: Re: [PATCH v2 1/5] doc: git-rebase: start with an example Message-ID: In-Reply-To: <26b742eb49f935147ac373bf9435827a6f85e531.1754680525.git.gitgitgadget@gmail.com> "Julia Evans via GitGitGadget" writes: > +Transplant a series of commits onto a different starting point. > + > +For example, imagine that you have been working on the `topic` branch in this > +history, and you want to "catch up" to the work done on the `master` branch. > + > +------------ > + A---B---C topic > + / > + D---E---F---G master > +------------ > + > +You want to transplant the commits you made on `topic` since it diverged from > +`master` (i.e. A, B, and C), on top of the current `master`. You can do this > +by running `git rebase master` while the `topic` branch is checked out. If you > +want to rebase `topic` while on another branch, `git rebase master topic` is a > +short-cut for `git switch topic && git rebase master`. s/switch/checkout/, as that is how the original defines the short-cut. > +------------ > + A'--B'--C' topic > + / > + D---E---F---G master > +------------ > + Other than that, looks great.