Hi guys, we're fighting with one of our repositories and just seeing a lot of really bizarre git (and/or source tree) issues with whitespace.
Here's what I know...
Symptoms include: files being marked modified when nothing has changed (aka whitespace / line ending issues).
So things I tried
Any ideas? There's a lot of confusing information around this topic regarding auto=crlf - although i'm not sure I fully understand how to verify there are no issues.
Curious, does anyone have experience with this sort of issue? Any help you can provide?
Anyone use any companies out there that specialize in git source control that might be able to help?
This issue is really frustrating and would really appreciate some help
Thanks!
The cause of your problem is indeed the line endings. The people who have autocrlf=true are committing unix-style line-endings (while actually working with windows-style line endings) and the ones without this setting are committing a mix of unix-style and windows-style endings.
The solution is very simple: get everybody to set autocrlf=true in their Git configuration:
git config --global core.autocrlf true
and this problem will go away after a very short time. (You can expedite it by settings this yourself and committing all line-ending changes you have locally to all files.)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.