This document provides instructions for editing previous commits using git commit --amend and git rebase. It discusses:
1. Using git commit --amend to edit the most recent commit by making changes, staging them, and committing again.
2. Using git rebase to reorder commits on a local branch based on the latest remote master before creating a PR, in order to resolve conflicts early.
3. Using git rebase to continue work on a new branch when a previous PR is still open, but waiting to rebase the new branch until the first is merged to avoid duplicate reviews.