//View Tip #562
Similar Tips
» Being selfish - Kick all users except you
» Find occurrences of a string in a large code base without firing
» Store a directory name to come back to
» Moved Trac and Subversion repositories to another machine/direct
» Loop over files with spaces in the name


Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow
Sometimes, you want to add a lot of files to SVN from the command line. This simple command will find all unversioned files in an SVN checkout and adds them to SVN versioning.

for i in `svn status | awk '{if ($1 == "?") print $2}'`; do svn add $i; done

View Comments »


Add your comment

Comments are currently disabled
svn add * --force
Posted 2009-03-16 15:07:06

Home Latest Browse Top 25 Random Hall Of Fame Contact Submit