In git, how do I create a single patch for the last 2+ revisions? February 28, 2023 by Tarik git diff HEAD~2..HEAD > my-patch.diff It won’t have any of format-patch’s per-commit metadata, though.