When I try to commit some changed files, I get the following error message with TortoiseGit
fatal: LF would be replaced by CRLF in
git config --global core.autocrlf false will checkin files with CRLF, that is not used to.
I've noticed on Windows, that with core.autocrlf true git doesn't like files with LF and core.autocrlf input doesn't like CRLF.
So: commit CRLF files with core.autocrlf true and LF files with core.autocrlf input (or convert them to CRLF).
Usually files with LF is autogenerated by code generators (e.g. https://start.spring.io or http://yeoman.io/)