Monday, February 18th, 2008

Adding Multiple files to SVN repository

I was surprised that there was no built in way of adding multiple files to a SVN repository. I did a quick search and it seems that there is “one easy way” - execute the following piped command line from a Terminal window.

you@yourmachine$ svn st | grep "^?" | awk ‘{ print $2}’ | while read f; do svn add $f; done

I could have sworn that I came across an easier way of doing this without resorting to doing the above.
More…

Leave a comment » Filed under Quick Notes by rvdavid at 10:31.

back to top

Credits:

© rvdavid blogs: Web Development | Powered by WP 2.3.1

Tree theme modified based on headsetoptions