Created
June 5, 2012 15:56
-
-
Save svperfecta/2875910 to your computer and use it in GitHub Desktop.
Submitting GIT patches via email
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
# Add something to my last commit (forgot a comment!) | |
git commit --amend -m "New commit message" | |
# Merge my last two commits | |
git rebase --interactive HEAD~2 | |
# Create the patch file | |
git format-patch HEAD~..HEAD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment