When I try to commit some changed files, I get the following error message with TortoiseGit
fatal: LF would be replaced by CRLF in
Since your repo is private, you can set git-config like this:
git config --global core.autocrlf false
This will solve your problem.If you have any further question, You can read the 《Pro git》:
If you’re a Windows programmer doing a Windows-only project, then you can turn off this functionality, recording the carriage returns in the repository by setting the config value to false:
$ git config --global core.autocrlf false
But when collaborating, you should better do these below:
.gitattributes, Github help-Dealing with line endings will be helpful.git config --global core.safecrlf truegit config --global core.autocrlf truegit config --global core.autocrlf inputYou may want to Read Git docs-git config for more info.