L
L
leha782019-11-14 19:27:03
git
leha78, 2019-11-14 19:27:03

Why does git change all the code even when you change only part of it?

When you change a piece of code and send it to github, it turns out that the whole file changes. The git diff shows that I removed all the code and inserted a new one. in the github, all the code is marked in red.
And this is only in some project files.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2019-11-14
@leha78

main reasons:
– change of line break character
– change of spaces to tabs or vice versa
en | en

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question