Archive for September, 2011

h1

SVN add all waiting files

September 7, 2011

If you would like to add all pending files to svn via an svn add command, the following works quite nicely:


svn status | grep ? | sed 's/^? \(.*\)/\1/g' | xargs svn add

And the same for removing missing files:


svn status | grep ! | sed 's/^! \(.*\)/\1/g' | xargs svn rm