Last active
July 23, 2024 19:26
-
-
Save stokito/434a129e4758489577502597c0a8c42b to your computer and use it in GitHub Desktop.
git: create a single patch file with multiple commits
This file contains hidden or 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
# last three commits | |
git format-patch -3 --stdout > multi_commit.patch | |
# all commits that are in your branch and not in master into a single patch file multi_commit.patch | |
git format-patch --signoff master --stdout > multi_commit.patch | |
# create patches in the folder ~/output/directory/ for all commits that are in your branch and not in master | |
git format-patch -o ~/output/directory/ --signoff master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://stackoverflow.com/questions/24121709/git-error-previous-rebase-directory-git-rebase-apply-still-exists-but-mbox-giv