I have some fairly long C++ files, and
git diff --check is reporting that there are a few carriage returns
^M on about 15 different lines. This is on a Windows 7 machine. After searching through several solutions, i.e. Visual Studio's
Advanced Save Options, or Notepad++'s EOL Conversions, they all seem to be modifying every line, not only the ones Git is complaining about. This results in a git diff of every line being replaced.
Could this be because all previous changes to these files also had carriage returns
^M and previous commits to it ignored any carriage return warnings?
git config core.autocrlf returns true, but staging a file does nothing when I run
git diff --cached --check for that file after staging it.
Is there any way to remove them? Manually going to the line and trying to change doesn't seem to be helping.