A
A
Andrey2017-07-27 16:34:49
git
Andrey, 2017-07-27 16:34:49

Why does git think the file is completely changed?

2 people are working on the project, one in phpStorm the other in Notepad++
after saving the file in phpStorm if you start editing the file in notepad++ git thinks that the whole file has been changed, what could it be?
encoding in phpStorm UTF-8 in notpad++ UTF-8 without BOM
UPD: it helped to register everyone in .gitconfig

autocrlf = true
  safecrlf = true

in notepad++ change crlf to lf commit, after that, on subsequent commits, only the changes made are shown.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton, 2017-07-27
@flx12

Options:

  • different encoding
  • different line endings

K
Kirill Kublyakov, 2017-07-27
@Kublyakov

Spaces are used for indentation in storm, tabs are used in notepad++. Or vice versa, or both. In general, pay attention to the indents)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question