July 29, 2007 – 5:30pm svn add new files, remove all svn directories

to add all new files in a project to the respository you can use either:

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

svn status | grep "^\\?" | sed -e 's/? *//' | sed -e 's/ /\\\\ /g' | xargs svn add

to remove all svn directories from a project:

find . -iname '.svn' -print0 | xargs -0 rm -rf 
Posted in  Web Development   |  delicious  Digg

Post a Comment

*
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