Git still showing deleted files after a commit

Nik So picture Nik So · Nov 29, 2010 · Viewed 68.1k times · Source

How can I remove deleted files from my Git repo?

I've deleted a folder of a JavaScript library, which contained many files. I then went to commit the changes like so:

git add .
git commit "message"
git status

But it shows all those files as "deleted ....".

How can I make them go away?

Answer

Jamund Ferguson picture Jamund Ferguson · Dec 7, 2011

This will add deletes as well.

git add -u .

Check what's staged to be committed with:

git status