I\'ve tried editing a php file in TextWrangler with line endings set to Unix, in NetBeans, and in vim. When I save the diff to a patch and then try to apply it, it gives whi
Many times i have faced such issues when my team mate works on Linux/Windows or uses git send-email.
I always used to follow below command.
git apply -3 --whitespace=fix yourpatch.patch
or
git am -s -3 --whitespace=fix yourpatch.patch
-3 option will try three-way merge and it will help to solve other issues also.