TIL that `git add` has a `--edit` (or `-e`) option that allows you to edit the patch to be applied, i. e. to remove changes that you don't want to add. This is really helpful for me as I have a tendency to change more than one thing at a time, but I still want each of my commits to contain one change only.





