Answer the question
In order to leave comments, you need to log in
How to remove multiple files from git at once?
Suppose, in the course of working on a project, several files are deleted. git notices all this and needs to fix these deletions in it. So it looks like:
How to fix all deletions at once, and not do git rm for each file?
"git rm -r .", as I understand it, is not suitable for this, deleting one file at a time, entering each name manually - this is also not an option.
Answer the question
In order to leave comments, you need to log in
git add -u .
Update the index just where it already has an entry matching . This removes as well as modifies index entries to match the working tree, but adds no new files.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question