how to apply patches from git ?

Jeff Kirsher jeffrey.t.kirsher at intel.com
Wed Jul 13 05:16:09 EDT 2011


On Wed, Jul 13, 2011 at 00:22, RKK <kulkarni.ravi4 at gmail.com> wrote:
>  Hi all,
>
> Sorry if this is a basic question.
> How do i take patches from e-mail?
>  for example git send mail sends patches as e-mail
>
> if someone wants to apply that patch to his branch then how do i get
> that in . patch format and then use
> patch -p1 *.patch  or is there something im missing here? thanks.
> --
> Warm Regards,
> Ravi .
>

Save the email message in mbox format and then you can use git am
/path/to/mbox/file to apply the email patch to your tree.

-- 
Cheers,
Jeff



More information about the Kernelnewbies mailing list