Wednesday, June 13, 2007

Adding multiple files to Subversion at once

svn st | grep "^?" | awk '{ print $2}' | while read f; do svn add $f; done

If you want all the ? files to be added. Found this tip here http://www.gregwhitescarver.com/blog/2006/05/22/add-multiple-files-in-subversion-at-once/

1 comment:

  1. svn st | grep "^?" | awk '{ print $2}' | xargs svn add

    works also

    ReplyDelete