SVN, add or delete Items not under version control by batch.



I had two situations, the first one adding all unversioned files in a development svn repo and the second deleting all unversioned files for security reason (via a cronfile):

svn status | grep '^?' | awk '{print $2}' | xargs svn add

Or

svn status | grep '^?' | awk '{print $2}' | xargs rm -rf



Any thoughts?

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Loading more content...