Trying to commit Git files but getting :: fatal: LF would be replaced by CRLF in

后端 未结 6 1497
粉色の甜心
粉色の甜心 2020-11-30 22:15

When I try to commit some changed files, I get the following error message with TortoiseGit

fatal: LF would be replaced by CRLF in

6条回答
  •  执笔经年
    2020-11-30 22:57

    With .gitattributes file, use

    *.h text=auto
    *.cpp text=auto
    *.txt text=auto
    

    as is documented in https://git-scm.com/docs/gitattributes.

提交回复
热议问题