How to add multiple files to SVN

Share/Save

We all know that when you want to add multiple files to the SVN repository you need to specified each one of those files, something like this:

svn add file1 file2 dir3/file3

But what happen when what you need is to add all those files that are not under revision yet?

Well, in that case we have this solutions:

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

I hope this make a little bit easier your working days.

Share/Save

Leave a Reply

* Required fields.