PHPStorm - How to Create a Patch File Ignoring Blank Spaces

2

I can generate a Patch file with the changes to be committed in git.

How can I generate this Patch file, bypassing white spaces just like I do on the View Changes screen?

Some old files have tabs instead of 4 spaces and some white space left at the end, in the diff view I can ignore them, but how do I do this in Patch so it does not turn into a mess?

    
asked by anonymous 01.04.2015 / 21:45

1 answer

1

User @jbaptperez in one comment, recommended a link to read that solved my problem:

link

The answer was:

git apply --ignore-space-change --ignore-whitespace mychanges.patch

Thank you.

    
20.06.2016 / 20:36