small, focus, logically distinct commits will increase your chance of getting your code integrated into open source projects. It will also help you write code in an incremental way that is much easier to reason about. It makes it easier to:
- incrementally pull your changes
- revert individual parts that might be broken
- git-bisect to binary search through your commits and find exactly what commit introduced a bug
- do code review
- understand what each change does via the commit description
Unfortunately GitHub actively encourages you to not think about commits which is another reason why I despise it and encourage email patch contributions. nostr:note1szzl0tzgghl4252y7q3hgnv4c6f8z46ehkyvz7ntpsel52x5epvqvmnndm