When I try to commit some changed files, I get the following error message with TortoiseGit
fatal: LF would be replaced by CRLF in
With .gitattributes file, use
*.h text=auto *.cpp text=auto *.txt text=auto
as is documented in https://git-scm.com/docs/gitattributes.