Git diff pacth

How to create a patch with git diff:
git diff HEAD~2 > changes.diff
How to use it:
patch -Np2 -i changes.diff
thanks to Andy ;)