Make git undo any whitespace-only changes?

后端 未结 5 1433
清歌不尽
清歌不尽 2021-01-31 09:28

Is there an easy way to automatically do a git checkout on any file that only has whitespace changes? I\'m dealing with both Windows and some code generation that\'s run from Ec

5条回答
  •  庸人自扰
    2021-01-31 09:32

    Another approach is to use dos2unix command on a unix or (windows pc as a special install) to convert the line endings and commit and push

提交回复
热议问题