Git SetupFirst, install git and git-email. Then, setup ~/.gitconfig for your user and proper sendemail section. This shows a sendemail setup for a typical single gmail account.
However, it may be more useful to be able to easily send from multiple accounts. This can be accomplished using the --identify flag in git.
This way when you can select your identity to fill in these values. In addition if you specify no identity you can have default fields if necessary. If you added a [sendemail] field this would be called by default. Man git-config can show you more options.
Formatting the Patch
Once we have the patch committed to the HEAD on our branch we format the patch using:
This should produce a patch like 0001-blah.patch.
Then check for formatting errors using the checkpatch script provided in the kernel repository:
You should read the kernel documentation to get a better idea of what is expected.
Sending A Single PatchNow we are ready to send a patch. The ./scripts/get_maintainer.pl in the kernel repository provides a way to specify whom needs to be CC'ed based on the maintainers file, the history of the file, and which lines of code are changed.
The -i means the script is interactive and you can edit the list before sending. Once you have completed the commands, the patch should be sent!
If you have your patches in a public git repository, it is sometimes easier to send pull-requests for patches instead of sending.
Then add a 'Subject: ' line in the request-pull.txt that explains the pull request. Adding --subject doesn't seem to work for me. In additoin add any other tesxt
With this you should have a pull request sent!