SVN add all unversioned files at once

Hold on Cowboy

This blog post is pretty old. Be careful with the information you find in here. It's likely dead, dying, or wildly inaccurate.

If you want to add all the unversioned files at once to subversion, then you either have to type in all the paths or try this.

Add this to your .bash_profile svn_add_all(){ svn status | grep "^?" | awk '{print $2}' | xargs svn add }

Then typing svn_add_all will add all the files underneath your current working directory.

Did this help you out? It took me a few days to piece together all this information together, I hope this saves you some time (who knows, maybe the future me will be thankful I wrote this down). Let me know your thoughts.