S
S
Sergey Kiryanov2019-02-07 16:10:20
git
Sergey Kiryanov, 2019-02-07 16:10:20

How to solve the problem of different line separators in team development?

Team development project. It so happened that part of the project was written on the windows editor, part on linux.
At the moment, programmers also work on different platforms in the PHPStorm editor.
Therefore, when opening files on Windows, those that were created on Linux due to CR vs CRLF, git recognizes the slightest change as a completely different file (and vice versa).
How to adequately solve this problem or bypass it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
Lynn "Coffee Man", 2019-02-07
@Dizzy221

Make everyone use LF and forget about this problem. PHPStorm is smart enough to understand this format on Windows as well.

D
Dmitry Belyaev, 2019-02-07
@bingo347

https://editorconfig.org/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question