A
A
Alio2015-04-27 07:08:35
git
Alio, 2015-04-27 07:08:35

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:
6ebe2a54519d44cfb9d7c9e519968889.png
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

2 answer(s)
L
Lynn "Coffee Man", 2015-04-27
@Almazka987

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.

T
toxa82, 2015-04-27
@toxa82

git rm Display/*
or
git rm <file1> <file2> ... <fileN>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question