recursive “svn add” approach

Not being an SVN (subversion) guru I wanted to find a way to recursively add files (svn add) to put them under version control.

Solution: Here’s the solution (updated from Paul’s suggestion below):


 “svn add * –force” This will recursively add new files and skip any files that are already in svn.

The original solution I was using was the below:


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

2 Comments

  1. Paul Gross Said,

    January 11, 2009 @ 9:20 am

    You can just “svn add * –force” This will recursively add new files and skip any files that are already in svn.

  2. admin Said,

    January 11, 2009 @ 1:26 pm

    Thanks Paul – I’ll update the post. I wonder whether this was a later feature for svn such that it would explain why there were quite a few post around the traps with cobbled together ways to doing this.