Created
March 10, 2022 13:59
-
-
Save skounis/92d2a5b69af60003e51ee3d16263be7b to your computer and use it in GitHub Desktop.
Generate git patches
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generate patch for last commit | |
git format-patch -1 HEAD | |
# Generate patches for last 2 commits | |
git format-patch -2 HEAD | |
# Combine the changes of the last 2 commits into on patch file | |
git format-patch -2 HEAD --stdout > combined.patch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment