Single Command to Remove Missing Files and Add New Files into SVN

This is a short entry. If you have a WordPress.org theme/plugin, here’s a single command to add all new files and remove all missing files in SVN:

svn add `svn st|grep "^?"|awk '{print $2}'x`
svn rm `svn st|grep "^\!"|awk '{print $2}'x`

Leave a Reply