Subversion – Add all new files

Git rocks.

But sometimes we must use Subversion, or worse still CVS!

Anyway, with git I would usually:

git status
git add .
git commit -a
git push (if necessary)

subversion won’t let you just ‘add .’, which really sucks! As always though, you can geek it up in the command line and type this:

svn status | grep ‘?’ | sed ‘s/^.* /svn add /’ | bash

which filters through the status, greps for the new files starting with ‘?’ and then adds them, outputting to the terminal window. A bit long winded, but it works!


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s