git-via-email workflow tip:
On GitHub, many users will push several commits to their branch to build up one cohesive change gradually, with bug fixes, style fixes, and so on, along the way. In this workflow, the pull request itself acts as a container for the entire change, rather than each commit.
Technically this isn't a great habit for GitHub either, but with email the drawbacks are particularly stark. Trying to replicate this flow for email will have you sending a bunch of "fix typo" commits to a mailing list, entering them all into the record forever. Instead, so long as your original patches are unmerged, you should go back and rebase them to merge bug fixes into earlier commits. Accordingly, you shouldn't take your changes upstream until they're good and ready and tested, as to minimize this churn. Good commit discipline is especially important for email-driven projects.
If you need a refresher on rebasing: https://git-rebase.io
And it also.makes the git history cleaner to whoever will be looking at it (bisecting, git-blaming, etc) later on.
"He who controls the past commands the future. He who commands the future conquers the past." - "Kane" (c&c)
I somehow thought a Command & Conquer quote fitting...
~~so how does one find a balance between ‘fix typo’ and ‘my single commit is a massive changelog i still can’t commit because the feature isn’t working yet’~~
@sir reminds me of this recent article https://gregoryszorc.com/blog/2020/01/07/problems-with-pull-requests-and-how-to-fix-them/
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!