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

This is a short entry. If you have a 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

Your email address will not be published. Required fields are marked *