Technology / Software / 

04 Nov 2009

SVN "Add Everything" One-Liner

This was in my notes, originally dated 2009-11-04. It’s just a little one-line shell script that calls svn status, parses it for all files in the local copy that aren’t in the repository, and adds them. Good when you’ve done something that’s created a lot of local files and you don’t want to add them all individually.

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

I haven’t had reason to use this in a while, because I’ve mostly switched from SVN to Git in the past few years.