Oh I had a funny story with rebase too... Now that I think about it, I think rebase should have some confirmation like Y/N type. I had a similar problem although it was just majorly me being clumsy, I had rebased and forgot to continue, and formatted patch and then I didn't see the files it created and sent the email with *.patch pathspec. And that made me realise just after hitting enter that I sent a patch with a previous commit You can find the thread here.[1] So I believe there must be a confirmation with a warning something like Y/N so that people are sure that they are doing stuff like creating a new branch within rebase or even sending an email or formatting the patch. 1 - https://lore.kernel.org/git/20250524073055.58092-2-jayatheerthkulkarni2005@xxxxxxxxx/