loading...

Discussion on: Is git commit --amend truly *important*?

Collapse
michi profile image
Michael Z

Amending/rebasing helps a lot with making PRs easily reviewable. Reviewers can look at the code commit-by-commit. Yes, keeping PRs small is a good practice, but even for smallish PRs, this helps a lot.

Say, you add something like a new configuration that happens to touch multiple features, reviewing it commit-by-commit avoids the problem where you review file A for feature AA, followed by file B for feature BB, and then file C for feature AA again.

In my experience, it's just easier to wrap your head around the whole thing this way.