I\'ve been working with git for a few weeks, but now I\'d like to contribute back to this open source project. I\'ve merged my work with the latest, remote by pulling editing ou
Use git format-patch origin/master
. This creates a patch file for each commit on your checked out branch, which is not in origin/master.
To have one file instead of multiple files you can use
git format-patch master --stdout > mypatch.patch
Use this to create one file containing all commits in your current branch that are not in the master branch:
git format-patch master --stdout > mypatch.patch