Last Updated: February 25, 2016
·
629
· ramox

Remove already deleted files in Git

Ever accidentally removed a file using only rm instead of git rm and having to check it out and remove it again?

Not anymore! Just run:

$ git rm `git status | grep deleted | awk '{print $3}'`

Source