git diff --no-prefix > [path file name]
patch -p0 < [path file name]
patch -p1 < patch.diff
worked for me !
Thank you @crzdeveloper
Where do you put it and what it does
or even more easier
git apply patch.diff
@teamus2012
https://medium.com/odds-team/create-a-patch-file-from-git-diff-c746be60d1e
Thanks, great post explains what p1
means.
Or even easier
Create patch
git diff > patch.diff
Apply patch
patch -p1 < patch.diff