Open axmmisaka opened 5 months ago
The problem with pre-commit hooks is that we can't enforce them -- we can only suggest them. I agree with you that we can do a better job maintaining a linear history.
Would you like to draft a section for the guidelines? I don't think we should write a complete git tutorial, but we could describe some best practices and insert pointers to existing tutorials describing the git features in more detail.
I've complained in the past on Zulip about the cleanliness of our git history trees.
Since our contributing guideline is rather indicative, I think it might be worth it to outline some suggestions to make our git history cleaner, such as:
git pull --rebase
instead of merge to keep the history linearrebase
withsquash
/fixup
/git commit --amend
when solving linting/styling/typo problems, instead of have several "fix typo" or "minor fix" commits hanging around