On Mon, Feb 09, 2015 at 07:27PM, Dmitriy Setrakyan wrote:
> Nice blog on how to create patches in GIT:
> https://ariejan.net/2009/10/26/how-to-create-and-apply-a-patch-with-git/
>
> To create a patch:
> *git format-patch sprint-1 --stdout > mychanges.patch*
You might need to specify the range of the commits you want to generate the
patches for. E.g.
git format-patch sprint-1 HEAD~1
to produce formatted patch just for single commit
And yes - it's a good idea esp. for automated bot that needs to apply a patch
automatically.
Cos
>
> To check a patch (before applying):
> *git apply --check mychanges.patch*
>
> To apply a patch:
> *git am --signoff < mychanges.patch*
>
> Let's use these commands to attach patches to Jira tickets.
>
> D.