Last Updated: February 25, 2016
·
391
· groodt

Remove lots of files in a git commit

We've all been there. Deleted a bunch of files from a git repo and wondering if you need to git rm every file individually before you commit.

You don't need to! This little trick can be used to stage all of your deletions.

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