- Organize your work in small, self-contained, and well-documented commits.
- Rewrite your branch history to make it easy to review your changes. This includes squashing fixup commits, rebasing on top of the latest master, and rewriting commits to make them self-contained.
- Use git absorb to automatically create and squash fixup commits.
- Use the squash and merge option to merge your PR.
Please refer to Google's Code Review Developer Guide on how to write/receive a code review.