git status shows modifications even with autocrlf=false

后端 未结 6 1618
终归单人心
终归单人心 2020-11-30 03:21

I\'m experiencing the same issues as in this question: git status shows modifications, git checkout -- doesn't remove them

Git continues to show wor

6条回答
  •  南笙
    南笙 (楼主)
    2020-11-30 03:43

    Check if you have no .gitattributes file

    As mentioned in the "Effect" section of the gitattributes man page, those files can also have an effect on eol and automatic transformation:

    text ^^^^^^
    

    This attribute enables and controls end-of-line normalization.
    When a text file is normalized, its line endings are converted to LF in the repository.
    To control what line ending style is used in the working directory, use the eol attribute for a single file and the core.eol configuration variable for all text files.

    Check also your config for core.eol, as mentioned in "How line ending conversions work with git core.autocrlf between different operating systems".

提交回复
热议问题