So I was trying to use apply a diff file to my git dev branch. The diff I wanted to apply was this one here: https://github.com/mbabker/joomla-cms/compare/JHtml_move.patch
I had the same issue. I opened up Git Bash (Cygwin works as well) and did:
dos2unix.exe
Then I was able to apply the patch perfectly fine.