You cannot ignore file types for git status. You can use .gitignore to ignore whole files. And you can use various space options to convert what was fixed, what is highlighted (in red) or generally shown in diff and commit views.
Reasons why you cannot ignore these changes:
- Tracking file changes is a whole point of version control.
- Git represents the contents of the file regardless of the path using the SHA1 hash of the contents. Your ^ M affects SHA1, which makes it inevitable.
, , , . :
git diff-files --name-status --ignore-space-at-eol
, . git-alias 'd statusx ", .gitconfig:
[alias]
statusx = diff-files --name-status --ignore-space-at-eol
, : --ignore-space-change --ignore-all-space. . git diff --help.