A
A
Anarchy2017-12-07 16:44:40
GitHub
Anarchy, 2017-12-07 16:44:40

diff in bitbucket not displaying correctly. How to fix?

After uploading the updated file, the bibucket for some reason glues all the lines into one and because of this it is impossible to see the diff. Who faced, it is possible to correct it? Same on github
5a2945926987b566480137.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
youngmysteriouslight, 2017-12-07
@youngmysteriouslight

diff is taken line by line. The problem is that lines are misrecognised because line breaks are denoted differently in different commits.
Detailed information and how to treat is easy to google.
In short, change git config --global core.autocrlf
PS here on the toaster there is a similar topic: How to solve the problem with Git + phpStorm line endings?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question