Rebase over First Commit / Rewrite First Commit
When starting a new project there are times I'd like to overwrite the first commit (for example, removing the commit made by a bootstrap script such as create-react-app).
This can be achieved by running:
git rebase -i --root
During the interactive rebase, I usually mark all commits other than the first one as fixup commits and set the first one to reword so that I can put a message that covers all of the changes being squashed.