Add files to SVN recursively via command line

Submitted by abhishek on Wed, 09/15/2010 - 14:33

Search files in subdirectories and add them to SVN recursively

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

Thanks for the command. I tried it and it works great except when I was trying to process directories and filenames with spaces.

I made a couple of minor alterations to your command and came up with the following.

svn status | grep "^\?" | sed 's/^\? \+//' | sed 's/ /\\ /' | xargs svn add


Hrushikesh N. … (not verified)

Thu, 12/06/2012 - 00:29

Thanks, did the trick for me.