I paint objects as I think them, not as I see them.
— Pablo Picasso
Search files in subdirectories and add them to SVN recursively
svn status | grep "^\?" | awk '{print $2}' | xargs svn add
Thanks, did the trick for me.
Try this: svn add --force DIR/*
Thanks for the command. I tried it and it works great except when I was trying to process directories and filenames with spaces.
I made a couple of minor alterations to your command and came up with the following.
svn status | grep "^\?" | sed 's/^\? \+//' | sed 's/ /\\ /' | xargs svn add
Cheers
In unix, how to delete and copy subversion .svn folders?
you may try this one:
find . -name '.svn' | xargs rm -rf
sudo rm -R .svn
6 comments
Thanks
Submitted by Hrushikesh N. Kulkarni (not verified) on Thu, 12/06/2012 - 00:29.Thanks, did the trick for me.
Simplier
Submitted by Sergio Lepore (not verified) on Mon, 11/07/2011 - 19:59.Try this: svn add --force DIR/*
Spaces cause issues
Submitted by IslandLinux (not verified) on Wed, 07/27/2011 - 22:19.Thanks for the command. I tried it and it works great except when I was trying to process directories and filenames with spaces.
I made a couple of minor alterations to your command and came up with the following.
svn status | grep "^\?" | sed 's/^\? \+//' | sed 's/ /\\ /' | xargs svn addCheers
Requesting unix command
Submitted by Navsingh from Financial Technology (not verified) on Wed, 12/15/2010 - 17:22.In unix, how to delete and copy subversion .svn folders?
you may try this one: find .
Submitted by Johannes (not verified) on Thu, 03/22/2012 - 21:56.you may try this one:
find . -name '.svn' | xargs rm -rf
sudo rm -R .svn
Submitted by Anonymous (not verified) on Fri, 01/06/2012 - 09:02.sudo rm -R .svn