Use git format-patch and git apply --apply when extracting patches from git and