O
O
olshevskiy872013-05-06 16:41:41
git
olshevskiy87, 2013-05-06 16:41:41

How to clear the index of a git repository from deleted files?

The problem is this:

git status
#       deleted:    ëÏÐÉÑ.txt

The file itself has been physically deleted a long time ago, after that there were a lot of commits. I tried like this, but it didn't work:
$ git rm $(git ls-files --deleted)
fatal: pathspec 'ëÏÐÉÑ.txt' did not match any files

What can be done in such a case?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri Shikanov, 2013-05-06
@olshevskiy87

git commit -am "MSG"- helps

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question