Re: git-rebase(1) prior to a PR in in the github.com/freebsd area

From: Steve O'Hara-Smith <steve_at_sohara.org>
Date: Sun, 27 Aug 2023 18:13:24 UTC
On Sun, 27 Aug 2023 18:42:20 +0100
Graham Perrin <grahamperrin@gmail.com> wrote:

> I did use 'git rebase -i' with success four days ago, for a PR in 
> someone else's repo (not a fork of a FreeBSD tree). Successful then, 
> however I have used the command so rarely – like, only a handful of 
> occasions over the past year or so – that my mind goes blank. Entirely 
> blank, and using a search engine will make things far worse for me.
> 
> What should I do first, for the PR above?

	I would go with git rebase -i - it pretty much tells you what to do
if you know what you want - but in this case it boils down to changing the
pick in front of the commits to a sequence like

edit <first commit>
squash <second commit>
squash <third commit>
...

	Then tidying up the commit message.

-- 
Steve O'Hara-Smith <steve@sohara.org>