Why does Git keep changing my line endings?

I have been working on projects with Git for over a decade. I'm primarily a Windows user. This shouldn't be a problem. For the first time ever, this year, I have been having a lot of trouble with line endings. When I check files out, Git was converting all the line endings to windows based line endings (CRLF), even though the Repo has linux based line endings (LF). Recommitting would change the…