How to quickly add new files to Subversion


Quick tip: If you need to add files that are not currently in the repository to SVN, just run the following command from the directory:

$ svn st | grep ^? | cut -b7- | xargs svn add

Of course, you’ll need to commit the files:

$ svn commit

-Chris

  1. How to quickly delete files from Subverseion | ee99ee :: Blog - pingback on October 22, 2007 at 06:23
  2. Wo kann ich filme downloaden? - Yahoo! Clever - trackback on August 10, 2008 at 11:19
  3. that is very nice Chris – works simply in distant folders too:

    DEVFOLDER=’/var/local/www/etc/etc’

    svn st $DEVFOLDER | grep ^? | cut -b7- | xargs svn add

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Trackbacks and Pingbacks: