D
D
driverx182019-08-27 17:43:08
phpstorm
driverx18, 2019-08-27 17:43:08

Why, if I change a couple of lines, does the diff show up in the entire file?

I use PhpStorm 2019.2, change a couple of lines, push it all, and on the github it shows as if I became the author of the file. All lines go red, then all the same lines turn green.
Changed line separators to Unix - did not help. Someone met / was able to fix?
and I only deleted sections in the code, I did not add new code.
ps fixed, below wrote the solution

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
driverx18, 2019-08-27
@driverx18

The solution helped: git config --global core.autocrlf false
If phpstorm asks you to commit/push Commit as it or fix something there, choose Commit as it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question