E
E
exedis2021-11-08 23:23:13
git
exedis, 2021-11-08 23:23:13

Why are all files added to a commit?

Hello, the essence of the problem:
1) I download the project from the repository
2) I change one file
3) I want to make a commit, ide hangs for a while
4) and immediately adds all the files to the commit list
You go into any of the files, no changes, webstorm writes no difference, in vscode the same way.
And I rolled back the files themselves and set the environment settings to default, anyway ..
Maybe because of prettier or eslint this thing happens?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DevMan, 2021-11-08
@exedis

precisely because of them: any change in the file (whitespace and / or line breaks) is a changed file.

D
DollyPapper, 2021-11-08
@DollyPapper

Look through the console git for the difference between files that were not changed before and after changes were made in one file. Most likely, prettier or eslint formatted the code.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question