On Sat, 30 May 2020 at 21:09, Harald Anlauf <anl...@gmx.de> wrote: > > Dear experts, > > let's assume I need to backport a series of commits on master to a release > branch. > In the release branch, this series of commits should become a single commit. > > With bare git, there is "cherry-pick -n" that seems to be applicable. > > What is the right way to do it for gcc?
I do it with cherry-pick -n. Or you can cherry-pick each one, then do git rebase --interactive to squash them all into one.