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 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