Skip to content

Instantly share code, notes, and snippets.

@svperfecta
Created June 5, 2012 15:56
Show Gist options
  • Save svperfecta/2875910 to your computer and use it in GitHub Desktop.
Save svperfecta/2875910 to your computer and use it in GitHub Desktop.
Submitting GIT patches via email
# 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