After the next commit, I changed one file, and tried to make another commit ...
And I see such a picture that the folder and all the files inside it are displayed as new in the section untracked files .
This folder with files has been in the gita for a long time already and I have it locally. In it, I changed only the file (changed a couple of lines inside the file). The order of execution of my actions is almost always the following:
git status git add --all git status git commit -m "bla bla bla" git pull origin master // устраняю конфликты если они есть и повторяю git add, commit git push origin master At the last commit, there were no conflicts or any strange or unusual git behaviors.
But why a folder with all its files that was under control suddenly turned out to be like a new one, I can’t understand, and most importantly how to fix it will not break this work?
git diff --name-status HEAD^show? Maybe you accidentally madegit rm --cached <имя-папки>? - Nick Volynkin ♦git fsck? And by the way,git commit -a -s -m "..."kills a couple of birds with one stone - 0andriy