I've got a problem where I've got a large commit which changes about a thousand lines of code.
I use Intellij IDEA for coding. Problems with tabs appear when updating project, checkout on another branch, etc. This entails adding a lot of files to the Local Changes list. While the built-in diff tool shows "Contents are identical"
git diff returns this, for example
- trailingComma: 'es5',
- useTabs: true,
- singleQuote: true,
+ trailingComma: 'es5',
+ useTabs: true,
+ singleQuote: true,
Maybe, the problem is in the configuration file
I enclose my global config below
core.filemode=false
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
filter.lfs.clean=git-lfs clean -- %f
credential.helper=osxkeychain
filter.tabspace.smudge=unexpand -t 4
filter.tabspace.clean=expand -t 4
filter.tabspace2.smudge=unexpand -t 2
filter.tabspace2.clean=expand -t 2
Is there any way that git can be set up to ignore whitespace change?