Friday, September 20, 2013

Auto removing deleted files from Git in the command line

If you delete a lot of files from a Git repository, you can automatically remove them before commiting with the following command:

git rm $(git ls-files --deleted)