Alex Rivera | Logout

Git still showing deleted files after a commit

Asked 2010-11-29T20:22:03.930
82

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?

Edit
Report

1 Answer

154

This will add deletes as well.

git add -u .

Check what's staged to be committed with:

git status
answered 2011-12-07T20:57:34.270

Your Answer