August 2009

SVN add all unversioned files at once

SVN add all unversioned files at once

If you want to add all the unversioned files at once to subversion, then you either have to type in all the paths or try this.

Add this to your .bash_profile

svn_add_all(){
svn status | grep "^?" | awk '{print $2}' | xargs svn add
}

Then typing svn_add_all will add all the files underneith your current working directory.