Answer the question
In order to leave comments, you need to log in
Why does Git mark the deletion and re-creation of all lines of the file when saving changes?
Hello!
Please help, I have created a new repository and now when I save changes to an edited file, GIT marks as if all lines were erased and overwritten, and blank lines are added, although I only change a few characters.
Answer the question
In order to leave comments, you need to log in
is this included in the "a lot of stuff" set?
I can hardly believe that after reading this book, there are some questions about the git!
there is a problem with line breaks, the problem may be in
1) IDE settings, you need to check through a regular editor, for example, sublime
2) the problem is in the global settings of the git git config --global core.autocrlf false
3) setting up the repository, look at what is in the file .gitattributes
so that there is no text
* text= auto
# если он есть то заменить на * text=false
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question