E
E
exaller2016-03-18 18:28:34
git
exaller, 2016-03-18 18:28:34

Why does git add files to status that have no physical changes?

Let's just open the file and save it. And he immediately got into git status.
UPDATE:
git diff showed the following:
2016-03-18_173039.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alex stephen, 2016-03-18
@exaller

Git wrote to you: LF changed to CRLF.
These are different types of newlines.
Most likely, earlier the code was written in *nix systems, and now on Windows.
To avoid this, set up your code editor.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question