Git status ignore line endings / identical files / windows & linux environment / dropbox / mled

后端 未结 6 1828
离开以前
离开以前 2020-12-02 07:42

How do I make

git status

ignore line ending differences?

Background info:

I use randomly Windows and Linux to w

6条回答
  •  心在旅途
    2020-12-02 07:57

    Issue related to git commands on Windows operating system:

    $ git add --all
    

    warning: LF will be replaced by CRLF in ...

    The file will have its original line endings in your working directory.

    Resolution:

    $ git config --global core.autocrlf false     
    $ git add --all 
    

    No any warning messages come up.

提交回复
热议问题