Version all unversioned files in an SVN checkout


/ Published in: Bash
Save to your folder(s)

Sometimes, you want to add a lot of files to SVN from the command line. This simple command will find all unversioned files in an SVN checkout and adds them to SVN versioning.


Copy this code and paste it in your HTML
  1. for i in `svn status | awk '{if ($1 == "?") print $2}'`; do svn add $i; done

URL: http://www.shell-fu.org/lister.php?id=562

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.