rake rails:freeze:edge, awk, xargs, and git rm
So, I had a project.
I did
rake rails:freeze:edge
But ended up with a million files that had been deleted.
How do you "git rm" hundreds of files which have been deleted already?
Sadly git add vendor/rails/*../* doesn't work.
So here's a bit of awk.
git status | awk '$3 ~ /vendor/ && $2 ~ /deleted/ {print $3}' | xargs git rm
BOOM!